Skip to content

Opdex/opdex-auth-ui

Repository files navigation

Opdex Auth UI

Opdex Auth UI repository. Angular with Typescript styled with Material and SCSS connected with the Opdex Auth API.

Usage

  1. Redirect users to https://auth.opdex.com with an appended redirect or callback url.
# Example
https://auth.opdex.com?redirect=https://app.opdex.com/auth
  1. Users retrieve and sign provided Stratis Id message.

  2. Successful message signature validations will push an access_code and make the redirect or callback to the referrer.

# Example Redirection
window.location.href = https://app.opdex.com/auth?access_code={SomeAccessCode}

# Example Callback
POST('https://app.opdex.com/auth?access_code={SomeAccessCode}');

Contribute

Install Dependencies

npm install

Environments

The UI operates on Devnet, Testnet or Mainnet. Configure the environment.ts file for local development and for deployments.

Devnet is internal only, Testnet is public and Mainnet are public.

Run

Run the app locally by default on http://localhost:4200.

# Devnet (internal only)
ng serve

# Testnet (public)
ng serve -c testnet

# Mainnet (public)
ng serve -c mainnet

Build

Build the project for development or a release.

# Devnet Build
ng build 

# Testnet Build
ng build -c testnet

# Mainnet Build
ng build -c mainnet

# Release Build
ng build -c prod

Test

Run all of the project's unit tests.

ng test

About

Client UI for Opdex services authentication.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published