asgardeo / asgardeo-tomcat-oidc-agent

OIDC Agent for Tomcat using Java OIDC SDK for Asgardio
Apache License 2.0
15 stars 36 forks source link

Fix Asgardeo Java OIDC app redirection Issue #34

Closed ChanikaRuchini closed 2 years ago

ChanikaRuchini commented 2 years ago

Purpose

Resolves

With this fix

  1. Add support for the target page redirection. If a user tries to access another secured page (eg: app/myApp) without having an authenticated session with the IdP, the user is first prompted for authentication. Then upon successful authentication, the user is redirected to the original page he tried to access.

  2. Improve the SDK to add a redirection page as a new configurable oidc app property. Then the customer can add his custom home page by configuring the property homePage. when the application admin has configured this property, the user will always be redirected to the $homePage upon successful authentication regardless of which secured page the user tries to access.

Merge after https://github.com/asgardeo/asgardeo-java-oidc-sdk/pull/40