Customize OauthClientConfigurationProperties for specific oauth providers #1061
Unanswered
daltonconley
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to provide a custom OauthClientConfigurationProperties for a specific oauth provider? I'm try to generate the client-secret for Apple ID, which is a JWT signed by an Apple key (generated in the developer portal). My understanding is these tokens can have a max duration of 6 months so I'd like to provide a more dynamic approach to getting the secret within the micronaut service (perhaps generating the secret on a per request basis, or at startup), rather than building some secret generator/rotation mechanism outside of the service.
Another factor is that apple relies on "services ids" (which are children of app ids) to support multiple applications using apple sign in. From what I understand, this essentially means you have multiple client ids for the oauth configuration but the client secrets can share the same signing key. In my situation, I have a mobile application and a single-page web app. In the current implementation (not micronaut), I'm passing the client id from the respective app to my backend API to determine how I generate the client secret.
Config
Some code to generate client secret
Appreciate any advice.
See also https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens#3262048
Beta Was this translation helpful? Give feedback.
All reactions