Code Monkey home page Code Monkey logo

youtubechannel's People

Contributors

laurentiuspilca avatar lspilca 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

youtubechannel's Issues

OAUTH2 with latest Spring boot & security

@lspil Quick question on SS with OAUTH2.
I am trying to develop an API which need to use oauth2 with spring boot & spring security latest version.
here I have an Authorization server which uses grant type client_credential with basic auth and provide the access token.
Example: In postman
url: http://localhost:8090/oauth2/access_token?grant_type=client_credentials
Method: POST
basic auth: username & password
return: token in json format
Now there is another resource server which uses this access token and return the data to this API.

Example: In postman:
Url: http://localhost:8095/data/userList
Method: Post
Bearer Token: token

my question is that how can I do both Authorization & resource server into one API project? I know the flow here is that first it will get access token from authorization server then will attach access token to resource server call.
Appreciate your help in advance.

Custom AuthorizationRequestRepository

Hi Laurentiu! Thank you for your content! I have a question. What if I don't use sessions. I saw a lot of examples where people implement their CookieAuthorizationRequestRepository. But the deserializing cookie is potentially insecure... Can you suggest some best practices?

400 Error

Hello, Laur!
I'm sorry to write here, but for some reason I can't leave a comment on YouTube
I really need your help, I'm about to hand over the project and I can't progress at all.

The fact is that after receiving the code from the login page, I paste it into the postman and get a 400 error with body {"error": "invalid_grant"}

but every data is correct, and code was writed by tutorial

I thought maybe it was the google chrome password manager that automatically uses the code, and it ceases to be valid, but it seems that this is not the problem. with incognito mode everything was the same

https://github.com/Denivor007/AuthServiceFixNeeded2

Error run `experimental-as-v003`

I follow your youtube , and write my own version , but error occur as below:

I found error is releated to @Import(OAuth2AuthorizationServerConfiguration.class) ,but not clear about how to fixed it.

Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.IllegalStateException: Found WebSecurityConfigurerAdapter as well as SecurityFilterChain. Please select just one.

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.