[Feature] Direct Endpoint to trigger IdP Login
Got an idea? Nice! 💡 We love hearing what features would make PegaProx better for you.
A friendly reminder: PegaProx is built by volunteers in our spare time. We can't promise timelines or guarantee every feature will be implemented — but every suggestion helps shape the roadmap!
Want to help move things faster?
- 💖 Become a Sponsor — sponsored features get prioritized
- ⭐ Star the project — helps with visibility
- 🤝 Even better: submit a PR with your idea!
Describe the feature
It would make login with an IdP more seamless when there would be an Endpoint which directly triggers SSO Login. For Now one must always Click "Login with" Button.Use Case
It's an enhancement of look and feel and simply less anoying.
Alternatives considered
Tried already ooen the redirect Endpoints, but this always ends up on Login-Screen
How important is this for you?
This would improve my workflow
Checklist
- [x] I have searched existing issues and discussions to make sure this hasn't been requested before
Sorry, this one sat too long. And your workaround failing makes sense once you see why: /api/auth/oidc/authorize does not redirect, it returns JSON with the auth_url in it and sets the state/nonce/PKCE cookie. The button fetches that and then navigates. So opening it directly gets you a blob of JSON, and /oidc/callback without the IdP params falls through to the login screen — exactly what you saw.
What you are asking for is a variant that answers 302 straight to the IdP instead, so you can point a bookmark or a portal tile at it. That is small and it makes sense; it needs Nico to sign off because anything in the OIDC path does here.
Marcus
This is on Testing now and comes with the next release: GET /api/auth/oidc/login starts the sign-in and answers with a redirect straight to your IdP, so it works as a bookmark or a portal tile. Add ?redirect_after=/portal to land in the Client Portal afterwards. If OIDC is off or not set up, it opens the normal login page instead.
Landed in 1.5.0. GET /api/auth/oidc/login sends the browser straight to your IdP, so it works as a bookmark or a portal tile, and ?redirect_after=/portal drops you in the Client Portal after the sign-in. Thanks for sticking with this one, closing.
Nico