Code Monkey home page Code Monkey logo

spring-boot2-oauth2-jwt's Introduction

spring-boot2-oauth2-jwt's People

Contributors

marcosbarbero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spring-boot2-oauth2-jwt's Issues

Refresh token flow

Hi Marcos,
It too pretty good example you have put. it really helpful to developers.
i just want to know from you, about refresh token.
how we can refresh access token using refresh token ?

i will be fantastic if you provide me the any way-out.

Cannot load keys from store - keystore.jks not found

Starting server did not work. Did generating keystore.jks as documentation in https://dzone.com/articles/creating-self-signed-certificate said. Starting server with

oauth2-jwt-server $ mvn clean spring-boot:run

quits due to error.

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter]: Factory method 'jwtAccessTokenConverter' threw exception; nested exception is java.lang.IllegalStateException: Cannot load keys from store: class path resource [keystore.jks]

...

Caused by: java.lang.IllegalStateException: Cannot load keys from store: class path resource [keystore.jks]
    at org.springframework.security.oauth2.provider.token.store.KeyStoreKeyFactory.getKeyPair (KeyStoreKeyFactory.java:67)
    at com.amadeus.oauth.jwt.config.security.AuthorizationServerConfiguration.keyPair (AuthorizationServerConfiguration.java:102)
    at com.amadeus.oauth.jwt.config.security.AuthorizationServerConfiguration.jwtAccessTokenConverter (AuthorizationServerConfiguration.java:75)
    at com.amadeus.oauth.jwt.config.security.AuthorizationServerConfiguration$$EnhancerBySpringCGLIB$$36dcb130.CGLIB$jwtAccessTokenConverter$1 (<generated>)
    at com.amadeus.oauth.jwt.config.security.AuthorizationServerConfiguration$$EnhancerBySpringCGLIB$$36dcb130$$FastClassBySpringCGLIB$$94772ca6.invoke (<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invokeSuper (MethodProxy.java:244)
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept (ConfigurationClassEnhancer.java:363)
    at com.amadeus.oauth.jwt.config.security.AuthorizationServerConfiguration$$EnhancerBySpringCGLIB$$36dcb130.jwtAccessTokenConverter (<generated>)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)

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.