Skip to content

Commit 602231d

Browse files
authored
Merge pull request #1427 from solid/newToken
Support for new token (NSS)
2 parents 5302e12 + 7334ec1 commit 602231d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

bin/lib/start.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ function bin (argv, server) {
5858
delete argv['emailAuthPass']
5959
}
6060

61+
if (!argv.tokenTypesSupported) {
62+
argv.tokenTypesSupported = ['legacyPop', 'dpop']
63+
}
64+
6165
// Set up --no-*
6266
argv.live = !argv.noLive
6367

lib/api/authn/webid-oidc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function initialize (app, argv) {
3333

3434
// Perform the actual authentication
3535
app.use('/', async (req, res, next) => {
36-
oidc.rs.authenticate()(req, res, (err) => {
36+
oidc.rs.authenticate({ tokenTypesSupported: argv.tokenTypesSupported })(req, res, (err) => {
3737
// Error handling should be deferred to the ldp in case a user with a bad token is trying
3838
// to access a public resource
3939
if (err) {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)