OAuth2 Overview | SoapUI (2024)

OAuth2 Overview | SoapUI (1)

OAuth is an authorization method to provide access to resources over the HTTP protocol. It can be used for authorization of various applications or manual user access.

The general way it works is allowing an application to have an access token (which represents a user’s permission for the client to access their data) which it can use to authenticate a request to an API endpoint.

OAuth2 Overview | SoapUI (2)

A sample OAuth flow: Facebook

OAuth versions

There are two versions of OAuth authorization OAuth 1 (using HMAC-SHA signature strings) and OAuth 2 (using tokens over HTTPS).

Note: SoapUI currently only offers OAuth 2 authorization.

OAuth 2 terms

Conceptually, OAuth2 has a few components interacting: The resource server (the API server) contains the resources to be accessed. Access tokens are provided by the authorization server (which can be the same as the API server). The tokens are provided by the resource owner (the user) when accessing the resources. Similarly, an application using the credentials, and the API is called client or consumer.

End Points

The token Endpoint is used by clients to get an access token (and optionally refresh token) from the authorization server.

Note: When using implicit grant, this endpoint is not used. Instead the access token is sent from the authorization endpoint directly.

Tokens

The two token types involved in OAuth 2 authentication are Access Token and Refresh Token.

Access Token

The access token is used to for authentication and authorization to get access to the resources from the resource server.

Refresh Token

The refresh token normally is sent together with the access token.

The refresh token is used to get a new access token, when the old one expires. Instead of the normal grant type, the client provides the refresh token, and receives a new access token.

Using refresh tokens allows for having a short expiration time for access token to the resource server, and a long expiration time for access to the authorization server.

Token Types

Access tokens have a type, which defines how they are constructed.

Bearer Tokens

The bearer tokens use HTTPS security, and the request is not signed or encrypted. Possession of the bearer token is considered authentication.

MAC Tokens

More secure than bearer tokens, MAC tokens are similar to signatures, in that they provide a way to have (partial) cryptographic verification of the request.

Grants

Methods to get access tokens from the authorization server are called grants. The same method used to request a token is also used by the resource server to validate a token.

The four basic grant types are Authorization Code, Implicit, Resource Owner Credentials and Client Credentials. For additional information about these grant methods, see the Grant Methods topic.

Note: SoapUI currently only offers the grant types Code Grant and Implicit.

Authorization Code

With authorization_code grant, the resource owner allows access. An authorization code is then sent to the client via browser redirect, and the authorization code is used in the background to get an access token. Optionally, a refresh token is also sent.

Implicit

The implicit grant is similar to authorization code, but instead of using the code as an intermediary, the access token is sent directly through a browser redirect.

Resource Owner Credentials

The password/Resource Owner Credentials grant takes the uses the resource owner password to obtain the access token. Optionally, a refresh token is also sent. The password is then discarded.

Client Credentials

In client_credentials grant mode, the client's credentials are used instead of the resource owner's. The access token is associated either with the client itself, or delegated authorization from a resource owner.

Grant Type Extensions

OAuth has a mechanism for extending grant types as a bridge to other authorization frameworks, or for specialized clients.

Extension grants are used by clients through an absolute URI together with a grant_type parameter and by adding any additional parameters necessary to the end point.

Scope

In OAuth 2, the scope is a way to restrict access to specified areas. A common way of handling it is with a comma-separated or space-delimited list of strings, where each string indicates an areas of access.

More information

Wikipedia Article: OAuth

rfc6749 - OAuth 2 Protocol

OAuth2 Overview | SoapUI (2024)
Top Articles
Easily Calculate Shipping Costs with Freight Cost Calculator
Here Are All the Beloved Franchises Disney Now Owns
Hotels
855-392-7812
Practical Magic 123Movies
Sarah F. Tebbens | people.wright.edu
Costco The Dalles Or
Klustron 9
Best Transmission Service Margate
Mail Healthcare Uiowa
Produzione mondiale di vino
Morgan Wallen Pnc Park Seating Chart
Echo & the Bunnymen - Lips Like Sugar Lyrics
charleston cars & trucks - by owner - craigslist
Alexandria Van Starrenburg
Craigslist Red Wing Mn
How Much You Should Be Tipping For Beauty Services - American Beauty Institute
1773X To
If you bought Canned or Pouched Tuna between June 1, 2011 and July 1, 2015, you may qualify to get cash from class action settlements totaling $152.2 million
The best brunch spots in Berlin
Prot Pally Wrath Pre Patch
Airline Reception Meaning
Joann Fabrics Lexington Sc
Promatch Parts
Scat Ladyboy
Brenda Song Wikifeet
Urban Blight Crossword Clue
Flixtor Nu Not Working
Chase Bank Cerca De Mí
Everything You Need to Know About NLE Choppa
Blue Beetle Movie Tickets and Showtimes Near Me | Regal
Today's Final Jeopardy Clue
Autozone Locations Near Me
Hisense Ht5021Kp Manual
Srg Senior Living Yardi Elearning Login
Gold Dipping Vat Terraria
Invalleerkracht [Gratis] voorbeelden van sollicitatiebrieven & expert tips
2700 Yen To Usd
Www.craigslist.com Waco
Silicone Spray Advance Auto
4k Movie, Streaming, Blu-Ray Disc, and Home Theater Product Reviews & News
Tom Kha Gai Soup Near Me
Mother Cabrini, the First American Saint of the Catholic Church
Costco The Dalles Or
The Many Faces of the Craigslist Killer
Adams-Buggs Funeral Services Obituaries
Okta Login Nordstrom
786 Area Code -Get a Local Phone Number For Miami, Florida
Billings City Landfill Hours
Immobiliare di Felice| Appartamento | Appartamento in vendita Porto San
Ret Paladin Phase 2 Bis Wotlk
Latest Posts
Article information

Author: Twana Towne Ret

Last Updated:

Views: 6060

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Twana Towne Ret

Birthday: 1994-03-19

Address: Apt. 990 97439 Corwin Motorway, Port Eliseoburgh, NM 99144-2618

Phone: +5958753152963

Job: National Specialist

Hobby: Kayaking, Photography, Skydiving, Embroidery, Leather crafting, Orienteering, Cooking

Introduction: My name is Twana Towne Ret, I am a famous, talented, joyous, perfect, powerful, inquisitive, lovely person who loves writing and wants to share my knowledge and understanding with you.