Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.oauth;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * The type of procedure to use for retrieving OAuth credentials.
|
---|
6 | */
|
---|
7 | public enum AuthorizationProcedure {
|
---|
8 | /**
|
---|
9 | * Run a fully automatic procedure to get an access token from the OSM website.
|
---|
10 | * JOSM accesses the OSM website on behalf of the JOSM user and interacts
|
---|
11 | * with the site using an OSM session, form posting and screen scraping.
|
---|
12 | */
|
---|
13 | FULLY_AUTOMATIC,
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Run a semi-automatic procedure to get an access token from the OSM website.
|
---|
17 | * JOSM submits the standards OAuth requests to get a Request Token and an
|
---|
18 | * Access Token. It dispatches the user to the OSM website in an external browser
|
---|
19 | * to authenticate itself and to accept the request token submitted by JOSM.
|
---|
20 | */
|
---|
21 | SEMI_AUTOMATIC,
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * Enter an Access Token manually. The Access Token could have been generated
|
---|
25 | * by another JOSM user and sent to the current JOSM user via email, i.e. in order
|
---|
26 | * to grant the current OSM user the right download its private GPS traces. Or it could
|
---|
27 | * have been generated in a former session and filed away in a secure place.
|
---|
28 | */
|
---|
29 | MANUALLY
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.