You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"As an okta-oidc-xamarin third party developer, I want to mark class methods with event related custom attributes so that they are automatically subscribed to Okta authentication related events."
Proposed solution
Define custom attributes that relate one for one to each event defined in OktaContext.
During Okta platform initialization scan asynchronously for methods adorned with event based custom attributes, accepting a filter to limit the total number of assemblies/classes/methods scanned, and automatically subscribe those methods to the relevant events.
Alternatives considered
Manually write code that subscribes to events of interest.
Additional information
Looking for feedback and comments to determine how valuable this would be.
The text was updated successfully, but these errors were encountered:
The idea is to allow someone to write a class similar to the following and have methods automatically subscribed to relevant events without additional code needed:
publicclassMyOktaEventHandlers{[OnSignInCompleted]publicvoidLogSignIn(objectsender,SignInEventArgssignInEventArgs){ClaimsPrincipalclaimsPrincipal=signInEventArg.StateManager.GetClaimsPrincipalAsync().Result;// ... do something with claims principalConsole.WriteLine("Sign in completed");}}
User story
"As an okta-oidc-xamarin third party developer, I want to mark class methods with event related custom attributes so that they are automatically subscribed to Okta authentication related events."
Proposed solution
Alternatives considered
Manually write code that subscribes to events of interest.
Additional information
Looking for feedback and comments to determine how valuable this would be.
The text was updated successfully, but these errors were encountered: