@@ -9,14 +9,17 @@ headerimage: /img/181008-flask-okta/header.jpg
99headeralt: Flask and Okta logos. Copyright their respective owners.
1010
1111
12- User authentication is a basic feature in web applications
13- so that people can create and access their own accounts. Unfortunately,
14- there are many ways to improperly implement authentication.
12+ User authentication is a basic feature in
13+ [ web applications] ( /web-development.html ) so people can create and access
14+ their own accounts. Unfortunately, authentication is not always easy to
15+ set up and there are many ways to incorrectly implement login and logout
16+ features.
1517
1618This tutorial walks through how to use the
1719[ secure identity authentication service] ( https://developer.okta.com/use_cases/authentication/ )
1820called [ Okta] ( https://developer.okta.com/ ) , which is free for up to 1,000
19- active user accounts, to handle user data in Flask applications.
21+ active user accounts, to easily handle user data in [ Flask] ( /flask.html )
22+ applications.
2023
2124
2225## Our Tools
@@ -478,7 +481,8 @@ production application you will create other accounts for users to log into.
478481
479482Let's tweak one more bit in our application to fix the glaring lack of
480483excitement in successfully completing the authentication code for this
481- tutorial.
484+ tutorial. Update the two highlighted lines to match what is in the code
485+ block below:
482486
483487``` python
484488# imports for both Flask and Okta connection
@@ -514,8 +518,8 @@ def before_request():
514518@app.route (" /lair" )
515519@oidc.require_login
516520def lair ():
517- thundercats_lair = ' <html><head><title>Thundercats, hoooo!</title></head><body><h1>Thundercats now hidden lair.</h1><iframe src="https://giphy.com/embed/ahXtBEbHiraxO" width="480" height="273" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/retro-cartoons-thundercats-ahXtBEbHiraxO">via GIPHY</a></p></body></html>'
518- return Response(thundercats_lair)
521+ ~~ thundercats_lair = ' <html><head><title>Thundercats, hoooo!</title></head><body><h1>Thundercats now hidden lair.</h1><iframe src="https://giphy.com/embed/ahXtBEbHiraxO" width="480" height="273" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/retro-cartoons-thundercats-ahXtBEbHiraxO">via GIPHY</a></p></body></html>'
522+ ~~ return Response(thundercats_lair)
519523
520524
521525@app.route (" /" )
0 commit comments