GithubHelp home page GithubHelp logo

curityio / idsvr-customization-recipes Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 1.67 MB

Recipes for customizing login screen related behavior for the Curity Identity Server

License: Apache License 2.0

Shell 75.17% SCSS 24.83%
authentication customization look-and-feel oauth openid-connect

idsvr-customization-recipes's Introduction

Curity Identity Server Customization Recipes

quality availabitly

A fast setup for running the common login customization use cases.
Once understood, similar customizations can be quickly applied to your own system.

Prerequisites

First ensure that the following components are installed locally:

  • A Docker engine for your operating system
  • The envsubst tool, eg by running brew install gettext

Run the UI Builder

First run the ui-builder tool, with a recipe to customize:

export RECIPE='basics'
./run-ui-builder.sh

This copies the files from the first recipe, then opens the UI builder at the customized page.
You can see a list of all pages by browsing to the base URL of http://localhost:3000.
In the following screenshot the language has been set to Portuguese:

UI Builder Options

Example Recipes

Some example customizations are provided, in the below link, each of which has its own README file:

Recipe Name Description
basics Simple customizations to change text, logos and styles
email Customizations to email text, styles and templates, for email based login flows
multi-brand How to implement different branded customizations per client application

Deploy Customizations

Deploy the recipe files to the Curity Identity Server, using commands such as the following:

export RECIPE='basics'
export USE_NGROK=false
./deploy-idvr.sh

Login to the Admin UI if required, using these details, to understand the demo client and its authentication:

The deployed system uses the Username is Email option from the Account Manager:

Account Manager

Run OAuth Tools

Once the system is up and running, use OAuth tools to test deployed customizations.
Run the desktop version of OAuth Tools and create an environment from this metadata URL:

http://localhost:8443/oauth/v2/oauth-anonymous/.well-known/openid-configuration

Then run a code flow with a test client, and use the following settings in OAuth tools.
Alternatively use template-area clients with a client ID of web-client1 or web-client2.

  • Client ID: web-client
  • Client Secret: Password1
  • Scope: openid
  • Prompt: login

Select the HTML Form authenticator and use the Create Account option to register a new test user.
Then authenticate as the user and also run Reset Password flows that trigger emails.
View received emails by browsing to http://localhost:1080:

Email messages

Free Resources

Once you have finished customization testing, free resources by running this script:

./teardown.sh

idsvr-customization-recipes's People

Contributors

gary-archer avatar urre avatar

Watchers

 avatar  avatar  avatar  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.