All Projects → aldwindelgado → spring-boot-oauth2-server

aldwindelgado / spring-boot-oauth2-server

Licence: other
Sample standalone OAuth2 authorization server using Spring Boot

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to spring-boot-oauth2-server

Authlib
The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
Stars: ✭ 2,854 (+9741.38%)
Mutual labels:  jwt, oauth2-server
Cierge
🗝️ Passwordless OIDC authentication done right
Stars: ✭ 1,245 (+4193.1%)
Mutual labels:  jwt, oauth2-server
Spring Boot2 Oauth2 Jwt
Read more http://blog.marcosbarbero.com/centralized-authorization-jwt-spring-boot2/
Stars: ✭ 135 (+365.52%)
Mutual labels:  jwt, jdbc
Diber-backend
Delivery Service - Spring Boot / Spring Data Jpa / Hibernate / PostgreSQL / OAuth2 Application
Stars: ✭ 22 (-24.14%)
Mutual labels:  oauth2-server, spring-security-oauth2
Taroco-Authentication
Taroco-Authentication 统一认证服务
Stars: ✭ 49 (+68.97%)
Mutual labels:  oauth2-server, spring-oauth2
spring-security-oauth-sample
使用Spring Security OAuth实现OAuth 2.0授权的一个实例
Stars: ✭ 13 (-55.17%)
Mutual labels:  oauth2-server, spring-security-oauth2
oauth-boot
spring-boot and spring oauth2
Stars: ✭ 111 (+282.76%)
Mutual labels:  spring-security-oauth2, spring-oauth2
mcloud-oauth2-server
使用Spring OAuth2实现的OAuth2 资源服务器以及认证服务器
Stars: ✭ 57 (+96.55%)
Mutual labels:  oauth2-server, spring-oauth2
php-jdbc-bridge
Service and library to allow a PHP application to interface with a database via JDBC
Stars: ✭ 20 (-31.03%)
Mutual labels:  jdbc
oksql
An easy clojure postgres library
Stars: ✭ 69 (+137.93%)
Mutual labels:  jdbc
genkan
🔑 The future of Kitsu's Authentication
Stars: ✭ 13 (-55.17%)
Mutual labels:  oauth2-server
OpenAM
OpenAM is an open access management solution that includes Authentication, SSO, Authorization, Federation, Entitlements and Web Services Security.
Stars: ✭ 476 (+1541.38%)
Mutual labels:  jdbc
avro-schema-generator
Library for generating avro schema files (.avsc) based on DB tables structure
Stars: ✭ 38 (+31.03%)
Mutual labels:  jdbc
phoenix oauth2 provider
Get an OAuth 2 provider running in your phoenix with controllers, views and models in just two minutes
Stars: ✭ 72 (+148.28%)
Mutual labels:  oauth2-server
AbacusUtil
Release the power in Java programming
Stars: ✭ 77 (+165.52%)
Mutual labels:  jdbc
LPU-Java-2022-1
LPU Java JEE Sessions 2022 Batch 1
Stars: ✭ 30 (+3.45%)
Mutual labels:  jdbc
delta
DDD-centric event-sourcing library for the JVM
Stars: ✭ 15 (-48.28%)
Mutual labels:  jdbc
kotlin-spring-boot-rest-jpa-jwt-starter
kotlin spring-boot 2 rest/jpa/jwt starter
Stars: ✭ 32 (+10.34%)
Mutual labels:  jwt
jsql
Programing like SQL syntax with Java
Stars: ✭ 17 (-41.38%)
Mutual labels:  jdbc
jdbdt
JDBDT: Java Database Delta Testing
Stars: ✭ 12 (-58.62%)
Mutual labels:  jdbc

Sample standalone OAuth2 authorization server for Spring Boot (Uses in-memory token store)

The requesting method for token supports both json format and url-encoded format

The token validity is currently 60secs.

Update any of the clienId/clientPassword/tokenValidity to however you want.

Other implementations

Running

mvn clean package spring-boot:run

Request for a token

Use any of the curl commands to request an access token.

Using URL-Encoded Format

curl -X POST -H "Authorization: Basic YWNjb3VudDpwYXNzd29yZA=="  -H "Content-Type: application/x-www-form-urlencoded" -v localhost:8080/oauth/token?grant_type=client_credentials

Using JSON Format

curl -X POST -H "Authorization: Basic YWNjb3VudDpwYXNzd29yZA=="  -H "Content-Type: application/json" -d '{ "grant_type": "client_credentials" }' -v localhost:8080/oauth/token

Resource Server

See spring-boot-oauth2-client for running the oauth-client (resource server)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].