-
Notifications
You must be signed in to change notification settings - Fork 72
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(authentication-service): add oauth-code read and write providers #154
Conversation
|
||
### Providers | ||
|
||
You can find documentation for some of the providers bindings this service provides [here](./src/providers/README.md) |
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.
You can find documentation for some of the providers available in this service [here]
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.
done
}); | ||
response.redirect( | ||
`${client.redirectUrl}?code=${token}&user=${this.user.username}`, | ||
const token = await keycloackCodeWriter( |
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.
lets only keep one code writer provider. no need of separate for keycloak or google.
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.
done
@@ -9,112 +9,169 @@ A [provider](http://loopback.io/doc/en/lb4/Creating-components.html#providers) | |||
is a class that provides a `value()` function. This function is called `Context` | |||
when another entity requests a value to be injected. | |||
|
|||
Here we create a provider for a logging function that can be used as a new | |||
action in a custom [sequence](http://loopback.io/doc/en/lb4/Sequence.html). | |||
## Basic Usage |
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.
Mention that all these are optional.
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.
Done
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Description
Added providers to allow processing the code from Keycloak/Google authentications. Also removed username from subject of jwt tokens, and url of auth-redirects.
Type of change
Checklist: