Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

A copy of the upstream repo preserved in the state when I left the project.

License

Notifications You must be signed in to change notification settings

radekholy24/powerauth-mtoken-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo of Wultra Mobile Token

GitHub issues Twitter License

A demo web application that authenticates users via Wultra Mobile Token.

Installation

  1. Install JDK 11
  2. Install Maven 3.6
  3. Install PostgreSQL 13.5
  4. Create an API Key at https://sendgrid.com/
  5. Get credentials to the Wultra Mobile Token API
  6. Clone this repository
  7. Run mvn clean package spring-boot:repackage
  8. Configure the following application properties:
    • email.email-verification.body to the body of the sent email verification emails in the format of a MessageFormat pattern with a single format element representing a UUID verification code (e.g. Your email verification link is: http://example.com?code={0}.)
    • email.from.address to the email address of the sent emails' sender
    • sendgrid.api-key to the SendGrid API Key
    • spring.datasource.url to the URL of the PostgreSQL database
    • spring.datasource.username to the name of the PostgreSQL user
    • spring.datasource.password to the password of the PostgreSQL user
    • wultra-mtoken.rest.root-uri to the base URL of the Wultra Mobile Token API
    • wultra-mtoken.rest.username to the name of the Wultra Mobile Token API user
    • wultra-mtoken.rest.password to the password of the Wultra Mobile Token API user
    • optionally, accesstoken.bytes to the length of access tokens in bytes before encoding to Base64
    • optionally, accesstoken.validity to the validity of access tokens in seconds
    • optionally, cors.allowed-origins to the origins for which cross-origin requests are allowed from a browser
    • optionally, email.email-verification.subject to the subject of the sent email verification emails
    • optionally, email.from.name to the display name of the sent emails' sender
  9. Run java -jar target/mtoken-0.0.1-SNAPSHOT.jar

Documentation

The documentation is available at the Wultra Developer Portal.

License

All sources are licensed using the Apache 2.0 license. You can use them with no restrictions.

Contact

If you need any assistance, do not hesitate to drop us a line at [email protected] or our official gitter.im/wultra channel.

About

A copy of the upstream repo preserved in the state when I left the project.

Resources

License

Stars

Watchers

Forks

Languages

  • Java 100.0%