Implementation of Okta's Sign-In Widget and AuthJS using AngularJS 1
###Samples Provided
- Simple Login Experience Using Okta
- Custom Branded Login Experience
- OpenID Connect / Social Login
- Custom Login w/ AccessToken
###Pre-requisites This sample application was tested with an Okta organization. If you do not have an Okta organization, you can easily sign up for a free Developer Okta org.
- Verify OpenID Connect is enabled for your Okta organization.
Admin -> Applications -> Add Application -> Create New App -> OpenID Connect
- If you do not see this option, email developers@okta.com to enable it.
- In the Create A New Application Integration screen, click the Platform dropdown and select Single Page App (SPA)
- Press Create. When the page appears, enter an Application Name. Press Next.
- Add http://localhost:8080 to the list of Redirect URIs
- Click Finish to redirect back to the General Settings of your application.
- Copy the Client ID, as it will be needed for the Okta AuthSDK client configuration.
- Enable CORS access to your Okta organization
- Finally, select the People tab and Assign to People in your organization.
Once the project is cloned, install node.js on your machine. Using npm install http-server.
$ npm install http-server -g
Usage: $ http-server [path] [options]
Start the web server with http-server
$ http-server [path] [options]
[path]
is the directory of the sample (e.g. $ http-server path/to/login-widget/
)
Navigate to http://localhost:8080/
to sign in.