Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Microservices Security using OAuth2

Pragya Keshap answered on February 21, 2023 Popularity 5/10 Helpfulness 1/10

Contents


More Related Answers

  • microservices security best practices
  • Explain spring security OAuth2.
  • the oauth 2.0 authorization framework
  • Secure Service-to-Service Spring Microservices with HTTPS and OAuth 2.0
  • How does HTTPS authentication work in Microservices?
  • What are the different points to consider for security in Microservices?
  • Delegated authorization with OAuth2
  • Service to Service with OAuth2 Client Credentials Flow
  • scoped based authorization with OAuth2
  • How to handle security and access control in a Microservices architecture?
  • Creating an OAuth2-powered web app
  • Authenticating your microservices
  • WebClient OAuth2 configuration

  • Microservices Security using OAuth2

    0

    OAuth 2 has 4 different roles in this process.

    Resource Owner

    Client

    Authorization Server

    Resource Server

    Resource Owner: Resource owner is the user, who authorizes an application to access their account.

    Client: Client is the application, which is used by the user to get resources from the resource server.

    Authorization Server: Authorization server will issue access tokens by authenticating the user and obtain authorization grant.

    Authorization server issues two type of tokens, access_token and referesh_token.

    The responsibility of access token is to access resource before it gets expired.

    The responsibility of Refresh Token is to request for a new access token when the access token is expired. An authorization grant is a credential representing the resource owner’s authorization (to access its protected resources) used by the client to obtain an access token.

    The specification defines 4 grant types:

    Authorization code

    Implicit

    Resource owner password credentials

    Client credentials

    Generally, we will use implicit grant flow If the Client is a Single Page Application (meaning an application running in a browser using a scripting language such as Javascript). Please refer the following link to decide which grant type is suitable for your case. In this article, we are using implicit grant type and password grant type. 

    Popularity 5/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 21 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.