Skip to content

Username and Password

Username and Password is the simplest identity provider supported by Onegini IdP which uses password to login.

Prerequisites

To successfully complete this topic guide you need to ensure following prerequisites:

  • Onegini IdP instance must to be running, for the sake of this guide we assume it's available under http://idp-core.dev.onegini.me address

Configure Username and Password identity provider

Configuration of Username and Password identity provider is done in the admin panel available under http://idp-core.dev.onegini.me:8082/admin address. Please enter the address and go to Configuration -> Identity Providers and press + button to add new identity provider. On the page please select as following and use default setting for all the other fields:

Field Value
Type Username & Password
Name UnP
Enabled checked

After configuration is done please add Username and Password identity provider by pressing Save button.

Couple Username and Password as part of another identity provider

Onegini IdP supports many identity providers, eg. Facebook and Google. It is possible to create Username and Password identity while registering via another identity provider. To enable that feature please go to the admin panel and Configuration -> Identity providers. On the page with identity providers list please enter the identity provider which should have ability to additionally create password for a user. Select Force creating username & password during sign-up checkbox and save it by pressing Save button.

With that configuration user is additionally asked to provide password on a sign up page. Please note that Force creating username & password during sign-up will be:

  • respected during automatic sign-up process
  • ignored when Migration during sign up is checked for specific identity provider and migration flow occurs
  • ignored when automatic coupling with existing account exists. User will not be asked to create Username & Password when following conditions occur:
    • user has account created with identity provider that's type is different than Username & Password and account is linked with email e.g. [email protected]
    • user signs in using different identity provider that has in its configuration Force creating username & password during sign-up checkbox checked and account also uses same email as in the previous step, i.e. [email protected]

Test configuration

Username and Password identity provider is available on a login page under http://idp-core.dev.onegini.me address. Please go to that address and notice that new fields are available, Username and Password. Also button responsible for registration is visible.

To test the configuration please press the Register button and proceed as shown on the registration form. After being registered user is logged in to the application.