-
I’m using zitadel/oidc and would like to implement support for prompt=none. When considering the implementation on the OP side for the authentication request, I expect the following behavior: if a session already exists, redirect directly to the relying party’s callback endpoint; otherwise, display the login screen. I believe this conditional branching is best implemented in op.Authorize, which likely involves using op.AuthResponse. However, op.Authorize does not seem to allow passing the necessary arguments to op.AuthResponse. What would be the appropriate approach to handle this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi @nannany |
Beta Was this translation helpful? Give feedback.
In our product ZITADEL we pin the useragent to the user. When there is exactly one SSO session active, we set the userinfo when creating the Auth Request:
https://github.com/zitadel/zitadel/blob/6780c5a07ca491690e0af6d8baeac9aa5d69cabe/internal/auth/repository/eventsourcing/eventstore/auth_request.go#L173-L176
https://github.com/zitadel/zitadel/blob/6780c5a07ca491690e0af6d8baeac9aa5d69cabe/internal/auth/repository/eventsourcing/eventstore/auth_request.go#L740-L757
At that point the user is redirected to the login UI URL. The login UI will retrieve the auth request and sees prompt == none. Then it will use the
/auth/callback
URI to send the user back the the OIDC library.https://github.co…