Giter Club home page Giter Club logo

security-webauthn-quickstart's Introduction

Quarkus Security with WebAuthn

플리 시.

:

  1. :
  2. * , ,    보 
    
  3. *  보  
    
  4. *  보 DB 
    
  5. Minio 스리 :
  6. *  ,  ID  Minio   
    
  7. * Minio   보 JSON  
    

:

  • 프: React
    • : Quarkus
    • 스:
  • *  스
    
  • * Minio 스리 스
    
    • 스: PostgreSQL
    • 스리: Minio
    • : Docker
    • AI :
  • *  리 (  )
    
  • *   (Quarkus 스   )
    

** :**

Gemini 보 시 . 보 보 Gemini

  ggggg%yrghg345tcfrrrffg

This guide demonstrates how your Quarkus application can use a database and WebAuthn to store your user credentials.

Start the database

You need a database to store the user identities/credentials. Here, we are using PostgreSQL. To ease the setup, we have provided a docker-compose.yml file which start a PostgreSQL container and bind the network ports.

The database1 can be started using:

docker-compose up

Once the database is up you can start your Quarkus application.

Note you do not need to start the database when running your application in dev mode or testing. It will be started automatically as a Dev Service.

Start the application

The application can be started using:

mvn compile quarkus:dev

Test the application

From the CLI

The application exposes 4 endpoints:

  • /api/public
  • /api/public/me
  • /api/admin
  • /api/users/me

You can try these endpoints with a browser, using a hardware token by visiting http://localhost:8080.

Integration testing

We have provided integration tests based on Dev Services for PostgreSQL to verify the security configuration in JVM and native modes. The test and dev modes containers will be launched automatically because all the PostgreSQL configuration properties are only enabled in production (prod) mode.

The test can be executed using:

# JVM mode
mvn test

# Native mode
mvn verify -Pnative
Running in native

You can compile the application into a native binary using:

mvn clean package -Pnative

Note: You need to have a proper GraalVM configuration to build a native binary.

and run with:

./target/security-jpa-webauthn-1.0.0-SNAPSHOT-runner

NOTE: Don't forget to configure and start your database if you run without DEV services.

security-webauthn-quickstart's People

Contributors

kuyeol avatar

Watchers

 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.