Code Monkey home page Code Monkey logo

springoauth2authorizationserver's Introduction

Java_8 Spring_Boot Spring_Cloud_Security Spring_Cloud_Security GitHub stars

Oauth2 AuthorizationServer(인증서버) 구축

0. 개요

1. 실습 환경

  • Java 8~11
  • SpringBoot 2.x
  • Spring Oauth2
  • JPA, H2
  • Intellij Community

2. 실습 내용

Oauth2 Authorize Code 실습

토큰 발급

curl -X POST 'http://localhost:8080/oauth/token' -H 'Authorization:Basic dGVzdENsaWVudElkOnRlc3RTZWNyZXQ=' -d 'grant_type=authorization_code' -d 'code=9THJxB' -d 'redirect_uri=http://localhost:8080/oauth2/callback'

클라이언트 등록

insert into oauth_client_details(client_id, resource_ids,client_secret,scope,authorized_grant_types,web_server_redirect_uri,authorities,access_token_validity,refresh_token_validity,additional_information,autoapprove) values('testClientId',null,'{bcrypt}$2a$10$H2oQgFY7qCRHWqkvAV4P6ONy2v74wfr3fQv.xERw3BJYSqh/Gcgrq','read,write','authorization_code,refresh_token','http://localhost:8081/oauth2/callback','ROLE_USER',36000,50000,null,null);

springoauth2authorizationserver's People

Contributors

codej99 avatar

Watchers

James Cloos 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.