Solving Identity Management in Modern Applications by Yvonne Wilson & Abhishek Hingnikar
Author:Yvonne Wilson & Abhishek Hingnikar
Language: eng
Format: epub
ISBN: 9781484282618
Publisher: Apress
login(â) and handleCallback(â)
Login in OIDC usually involves implementing the redirection flow using the âauthorization codeâ flow. Implementing this two-step process as one âlogicalâ unit has advantages. For instance, consider a scenario where a user who has never logged in navigates to a document at /articles/foo/1 via a hyperlink shared to them. At this point, weâd like to redirect the user to the identity provider and then redirect them to /articles/foo/1 after they have logged in successfully.
To solve this, we can include state data such as the userâs desired document URL and any additional metadata on client-side storage and then âreferâ to it via a string key, which we pass to the identity provider as a state parameter. Upon successful authentication of the user, our application will receive the state parameter back and would be able to use this data to redirect the user to the desired document URL.
To send such a key of state data, we usually use the state parameter in OIDC. One thing to stress here is that when using state it must be an opaque string. One simple storage solution could be to use localStorage and JSON in the browser as shown in the following code snippet:javascript
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7782)
Grails in Action by Glen Smith Peter Ledbrook(7697)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6568)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6557)
Running Windows Containers on AWS by Marcio Morales(6087)
Kotlin in Action by Dmitry Jemerov(5066)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(4917)
Combating Crime on the Dark Web by Nearchos Nearchou(4499)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4414)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4339)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4174)
The Age of Surveillance Capitalism by Shoshana Zuboff(3955)
Python for Security and Networking - Third Edition by José Manuel Ortega(3740)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3509)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3408)
Mastering Python for Networking and Security by José Manuel Ortega(3344)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3330)
Blockchain Basics by Daniel Drescher(3294)
Learn Wireshark by Lisa Bock(3263)
