winery

OAuth with GitHub

UserStory:

In order to use (private) repositories instead of uploading all files into a Artifact Template, it is necessary to log in into GitHub. Therefore, the OAuth flow is implented as follows:

  1. By clicking the Login with GitHub button, the browser gets redirected to GitHub for authentication.
    1. Login and authorize the Application to access the private repositories.
    2. Or, if the application was already been authorized, GitHub automatically continues with step 2
  2. GitHub answers with the status and code parameters which are parsed and send to our server to get the access token.
  3. Our server responses with the access token.

OAuth flow diagram

Considered Alternatives

Decision Outcome

Pros and Cons of the Alternatives

[ALTERNATIVE 1]

[ALTERNATIVE 2]

[ALTERNATIVE 3]

License

Copyright (c) 2017 Contributors to the Eclipse Foundation

See the NOTICE file(s) distributed with this work for additional information regarding copyright ownership.

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.

SPDX-License-Identifier: EPL-2.0 OR Apache-2.0