Git Product home page Git Product logo

okta-oidc-flows-example's Introduction

Okta OpenID Connect Fun!

This is a Spring Boot project that demonstrates various OIDC flows using configurable response types and scopes.

Go to the live example at https://okta-oidc-fun.herokuapp.com.

You can exchange an authorizaton code for tokens.

And, you can validate access and id tokens.

Want to run this app in your own Heroku instance? Click below:

Deploy

You'll need to supply values for the following environment variables:

Environment Variable Description
OKTA_ORG The okta organization - ex: micah.okta.com
OKTA_AUTHORIZATION_SERVER_ID The Okta authorization server id - ex: aus9vmork8ww5twZg0h7
OKTA_OIDC_CLIENT_ID The Okta OIDC application client id
OKTA_OIDC_CLIENT_SECRET The Okta OIDC application client secret
OKTA_SESSION_USERNAME The email address of the user that the app will establish a session as
OKTA_SESSION_PASSWORD The password of the user that the app will establish a session as
OKTA_ZORK_URL The base URL of where the Okta OAuth2 Zork game is hosted. Note: If this is left blank, it will be ignored.

The OKTA_SESSION_USERNAME and OKTA_SESSION_PASSWORD are used to establish a session on the backend so that the user does not have to login to exercise the OIDC app.

These environment variables are stored on the heroku instance and are not available to the end user.

Whatever name you give your Heroku app, you must add the following redirects to your Okta OIDC app:

https://<your heroku app name>.herokuapp.com/continue
https://<your heroku app name>.herokuapp.com/flow_result

For instance, these are the supported redirects for where this app is currently deployed:

https://okta-oidc-fun.herokuapp.com/continue
https://okta-oidc-fun.herokuapp.com/flow_result

Go to the live example at https://okta-oidc-fun.herokuapp.com.

okta-oidc-flows-example's People

Contributors

dependabot[bot] avatar dogeared avatar hagenhaus avatar imgbotapp avatar mraible avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.