Coder Social home page Coder Social logo

authenticator-maven-archetype's Introduction

Curity Maven Archetypes

These project provides Maven archetypes to help you quickly create a skeleton of a plug-in that can be used with the Curity Identity Server. Currently, the following archetypes are available:

  • Vanilla authenticator
  • A Kotlin-based authenticator
  • OAuth- or OpenID-Connect-based authenticator

The latter is a good one to use when creating an authenticator that communicates with an upstream OAuth or OpenID Connect provider. It includes a callback to obtain an authorization code from that provider and handles the uses the token from it to create the required AuthenticaitonResult. The first is a good starting point for any other kind of authenticator. The Kotlin one is a good one to use if you'd like to program in that language.

Install the Archetypes Locally

To install these archetypes, just issue the command mvn install.

Generate a new Plug-in Project

To create a simple authenticator that does not use OAuth or OpenID Connect, run the following command (after installing the archetypes):

$ mvn -B archetype:generate \
      -DarchetypeArtifactId=identityserver.plugins.archetypes.authenticator \
      -DarchetypeGroupId=io.curity \
      -DarchetypeVersion=1.2.0  \
      -DartifactId=hello-world \
      -DgroupId=com.example.curity \
      -DpluginName=HelloWorld \
      -Dversion=1.0.0-SNAPSHOT

(Substitute groupId, artifactId and version values accordingly.)

Similarly, to create a skeleton project that uses OAuth or OpenID Connect to authenticate to an upstream provider, run this command:

$ mvn -B archetype:generate \
      -DarchetypeArtifactId=identityserver.plugins.archetypes.oauth-authenticator \
      -DarchetypeGroupId=io.curity \
      -DarchetypeVersion=1.2.0  \
      -DartifactId=hello-world \
      -DgroupId=com.example.curity \
      -DpluginName=HelloWorld \
      -Dversion=1.0.0-SNAPSHOT

The only difference in these two is the archetypeArtificateId. Similar to these, change the archetypeArtificatId to identityserver.plugins.archetypes.kotlin-authenticator to generate an authenticator that uses Kotlin like this:

$ mvn -B archetype:generate \
      -DarchetypeArtifactId=identityserver.plugins.archetypes.kotlin-authenticator \
      -DarchetypeGroupId=io.curity \
      -DarchetypeVersion=1.2.0 \
      -DartifactId=hello-world \
      -DgroupId=com.example.curity \
      -DpluginName=HelloWorld \
      -Dversion=1.0.0-SNAPSHOT

License

These archetypes are licensed under the Apache v. 2 license.

Questions

For questions, contact Curity AB:

[email protected]

https://curity.io

Copyright (C) 2017 Curity AB.

authenticator-maven-archetype's People

Contributors

travisspencer avatar atifsaddique211f avatar orvar-ehn 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.