Opdex Auth UI repository. Angular with Typescript styled with Material and SCSS connected with the Opdex Auth API.
- Redirect users to
https://auth.opdex.com
with an appendedredirect
orcallback
url.
# Example
https://auth.opdex.com?redirect=https://app.opdex.com/auth
-
Users retrieve and sign provided Stratis Id message.
-
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}');
npm install
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 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 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
Run all of the project's unit tests.
ng test