Given a web session id, fetches an OAuth access token.
| 316 | |
| 317 | // Given a web session id, fetches an OAuth access token. |
| 318 | string OsmOAuth::FetchAccessToken(SessionID const & sid) const |
| 319 | { |
| 320 | // Faking a button press for access rights. |
| 321 | string const oauth2code = FetchRequestToken(sid); |
| 322 | LogoutUser(sid); |
| 323 | |
| 324 | // Got code, exchange it for the access token. |
| 325 | return FinishAuthorization(oauth2code); |
| 326 | } |
| 327 | |
| 328 | bool OsmOAuth::AuthorizePassword(string const & login, string const & password) |
| 329 | { |
nothing calls this directly
no test coverage detected