MCPcopy Create free account
hub / github.com/comaps/comaps / FetchAccessToken

Method FetchAccessToken

libs/editor/osm_auth.cpp:318–326  ·  view source on GitHub ↗

Given a web session id, fetches an OAuth access token.

Source from the content-addressed store, hash-verified

316
317// Given a web session id, fetches an OAuth access token.
318string 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
328bool OsmOAuth::AuthorizePassword(string const & login, string const & password)
329{

Callers

nothing calls this directly

Calls 2

FetchRequestTokenFunction · 0.85
FinishAuthorizationFunction · 0.85

Tested by

no test coverage detected