Giter Site home page Giter Site logo

okta-signin-sample's Introduction

Okta Sign-in Sample

This was built using Okta's ASP.NET Core guide.

Requirements

Despite the guide being for ASP.NET Core 3.0, this was actually changed to ASP.NET Core 5.0, although this didn't require any changes to be made in the process.

  • .NET 5.0 SDK
  • ASP.NET Core 5.0 SDK
  • Docker (if you want to run this via Docker)
  • A configured application in Okta

I have specifically not included the credentials for Okta for obvious reasons, these can be added into appSettings.json file in a format like this:

"Okta": {
  "OktaDomain": "<INSERT YOUR OKTA DEV URL HERE, INCLUDING HTTPS://",
  "ClientId": "<INSERT YOUR CLIENT ID HERE>",
  "ClientSecret": "<INSERT YOUR CLIENT SECRET HERE>",
  "AuthorizationServerId": "default"
}

Notes

This has been configured to use port 30469 for HTTP, and port 44345 for SSL. If you configure a new Okta application for this, ensure that the correct ports are set in the callback URLs. You can change these ports by updating the launchSettings.json file, under Properties.

Claims visible after configuration

After following the guide and logging in, here are the claims which are returned, values have been hidden in case anything is sensitive.

Claims returned screenshot

Thoughts on Okta

  • Very simple to follow guide, no issues at all with this
  • Admin console is accessed via the same account that is used within the application as opposed to distinct users, which seems a little odd
  • Login form is handled by Okta, and the admin console provides a way to modify the HTML on this page
  • Hooks can be added to communicate with an API if required
  • Provides a "HealthInsight" report which is a report of what policies have not been enabled which may reduce security, or configurations which increase risk, e.g. "Authenticators are optional", or "More than 75% of admins have super admin privileges"

okta-signin-sample's People

Contributors

cwrenhold avatar

Watchers

 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.