-
Notifications
You must be signed in to change notification settings - Fork 4
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
Move IdP configuration information to IdentityProvider.register() #57
Comments
Hmm maybe? |
Sure, but I think semantically "register" implies up-front declaration of something, and so having this configuration information live in IdentityProvider.register() makes sense. It doesn't feel like |
I think I prefer re-using |
|
I would also prefer setStatus, I think. It just makes sense to me for the login status API to have this functionality (pass in user metadata for the browser to use in UI) and we should preserve that IMO |
IdPs also set login status via HTTP headers because it is easier to do that via 302s than executing JS, so if we were to use Login Status, we'd need to fit all of these endpoints into HTTP headers too, I think. |
Another point I'd like to make in favor of putting the config information in IdentityProvider.register() is that this configuration info should almost certainly have different expiration behavior than the cached account information, possibly a longer lifetime. |
It feels weird to have this in either. |
Ah sorry I think I misunderstood "IdP configuration" to be "everything that is passed into setStatus". If this is just for the apiConfig piece, I don't have as strong of an opinion anymore. Using register / setConfig SGTM. |
Or not! The JS calls for register/unregister don't have a header equivalent now, so we don't need to make it into the header for setStatus. |
But what would we tell IdPs that are using HTTP headers now if they wanted to use lightweight?
FWIW, |
We can have the semantics of the JS and HTTP interact such that the setstatus headers update the latest value only for the value for which it has the ability to update, leaving the other values (e.g. config info and hints) only modified by the Javascript |
This aligns closer with how the information is used.
The text was updated successfully, but these errors were encountered: