-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(chore): implement yandex configuration in preset #228
feat(chore): implement yandex configuration in preset #228
Conversation
* feat(chore): implement revoke token and revoke all token (fastify#222) * feat(chore): update deps and implement gitlab provider * feat(docs): implement gitlab configuration in preset * feat(chore): implement revokeToken * feat(tests): implement missing test in interface * feat(chore,tests): implement revokeAllToken * feat(chore): implement revokeAllToken --------- Co-authored-by: joris <[email protected]>
@@ -0,0 +1,33 @@ | |||
const fastify = require('fastify')({ logger: { level: 'trace' } }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fastify/plugins I think the examples/ folder is becoming too big to ship
I would switch to a single generic example and add a custom one only if necessary
Not necessary to do it in this PR tho 👍🏼
index.js
Outdated
authorizeHost: 'https://oauth.yandex.com', | ||
authorizePath: '/authorize', | ||
tokenHost: 'https://oauth.yandex.com', | ||
tokenPath: '/token' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it have a revoke url?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap, it has.
POST request to /revoke_token
https://yandex.ru/dev/id/doc/en/tokens/token-invalidate#cleartext
So I can add it right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it is done)
@@ -322,6 +322,17 @@ fastifyOauth2.EPIC_GAMES_CONFIGURATION = { | |||
tokenPath: '/epic/oauth/v1/token' | |||
} | |||
|
|||
/** | |||
* Yandex ID docs https://yandex.ru/dev/id/doc/en/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good. I also thought that the lack of references is bad. Thank you for adding the reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Over All LGTM
Co-authored-by: Uzlopak <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Checklist
npm run test
andnpm run benchmark
and the Code of conduct