GithubHelp home page GithubHelp logo

keycloak-actions-token's Introduction

Keycloak actions token

This extension exposes a custom realm resource to manage action tokens in keycloak.

Build the example

mvn clean verify

Deploy the example

Wildfly

Copy the .jar into the keycloak directory standalone/deployments

Quarkus

Copy the .jar into the keycloak directory providers

Routes

Generate

Wildfly

POST /auth/realms/{realm}/actions-token/generate

Quarkus

POST /realms/{realm}/actions-token/generate

Description

Request an action token for a set of specific actions.

Request

Type Name Required Description Schema
Path realm true realm name (not id!) string
Body user_id true User that will be asked to perform a set of required actions string
Body actions true Required actions the user needs to complete. List of required actions here < string > array
Body lifespan false Number of seconds after which the generated token expires integer(int32)
Body client_id false OAuth client the token was issued for. Defaults to the account client. string
Body redirect_uri false If no redirect is given, then there will be no link back to click after actions have completed. Redirect uri must be a valid uri for the particular client_id string
Body redirect_uri_validate false Bypass redirect_uri validation checks for the particular client_id boolean

Response

Type Name Required Description Schema
Body action_token true JWT action token signed with the realm's default signature algorithm string

Consumes

  • application/json

Produces

  • application/json

Useful resources

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.