RoboCupMS

Public Member Functions | Protected Attributes | List of all members
com.robogames.RoboCupMS.Business.Security.OAuth2Service Class Reference
Inheritance diagram for com.robogames.RoboCupMS.Business.Security.OAuth2Service:
[legend]
Collaboration diagram for com.robogames.RoboCupMS.Business.Security.OAuth2Service:
[legend]

## Public Member Functions
String | getOAuth2URI (String redirectURI) throws Exception
String | oAuth2GenerateToken (String redirectURI, String code) throws Exception

## Protected Attributes
UserRepository | repository

## Member Function Documentation

## ◆ getOAuth2URI()

String com.robogames.RoboCupMS.Business.Security.OAuth2Service.getOAuth2URI | ( | String | redirectURI | ) | throws Exception
| inline

Vygeneruje odkaz pro autorizaci a autentizaci uzivatele. Po uspesne autorizaci je uzivatel presmerovan na specifikovanou adresu. Zde musi byt odeslan POST request na endpoint serveru "/auth/oAuth2GenerateToken" s parametrem "code" a "redirectURI" jejihz hodnuty ziska aktualni URL. "redirectURI" bude predan parametrem "state".

Parameters

  redirectURI | Presmerovani na URL "frond-end" -> pres JS predat autorizacni kod serveru "oAuth2GenerateToken

Returns
  URL odkaz pro autorizaci a autentizaci uzivatele

Exceptions

  Exception |

## ◆ oAuth2GenerateToken()

String com.robogames.RoboCupMS.Business.Security.OAuth2Service.oAuth2GenerateToken | ( | String | redirectURI,
|  | String | code
| ) |  | throws Exception
| inline

Vygeneruje pristupovy token pro uzivatele s vyuzitim OAuth2 autorizacniho kodu

Parameters

  redirectURI | URI presmerovani, zistka paramatru state spolu s autorizacnim kodem
  code | Autorizacni kod pro klienta

Returns
  Pristupovy token uzivatele

Exceptions

  Exception |

The documentation for this class was generated from the following file:

- /home/martin/Programing/RoboCupMS/src/main/java/com/robogames/RoboCupMS/Business/Security/OAuth2Service.java