Skip to content

Commit d749fbb

Browse files
authored
Merge pull request #3 from enthought/remove-oauth2-api-code
Remove OAuth2 API code
2 parents a34968c + 1141690 commit d749fbb

26 files changed

+9433
-9855
lines changed

code_generator/quay_api.json

Lines changed: 9285 additions & 8847 deletions
Large diffs are not rendered by default.

quay_api/README.md

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Install the following dependencies:
1616

1717
```sh
1818
go get github.com/stretchr/testify/assert
19-
go get golang.org/x/oauth2
2019
go get golang.org/x/net/context
2120
```
2221

@@ -280,42 +279,7 @@ Class | Method | HTTP request | Description
280279

281280
## Documentation For Authorization
282281

283-
284-
Authentication schemes defined for the API:
285-
### oauth2_implicit
286-
287-
288-
- **Type**: OAuth
289-
- **Flow**: implicit
290-
- **Authorization URL**: https://quay.example.com/oauth/authorize
291-
- **Scopes**:
292-
- **repo:read**: This application will be able to view and pull all repositories visible to the granting user or robot account
293-
- **repo:write**: This application will be able to view, push and pull to all repositories to which the granting user or robot account has write access
294-
- **repo:admin**: This application will have administrator access to all repositories to which the granting user or robot account has access
295-
- **repo:create**: This application will be able to create repositories in to any namespaces that the granting user or robot account is allowed to create repositories
296-
- **user:read**: This application will be able to read user information such as username and email address.
297-
- **org:admin**: This application will be able to administer your organizations including creating robots, creating teams, adjusting team membership, and changing billing settings. You should have absolute trust in the requesting application before granting this permission.
298-
- **super:user**: This application will be able to administer your installation including managing users, managing organizations and other features found in the superuser panel. You should have absolute trust in the requesting application before granting this permission.
299-
- **user:admin**: This application will be able to administer your account including creating robots and granting them permissions to your repositories. You should have absolute trust in the requesting application before granting this permission.
300-
301-
Example
302-
303-
```go
304-
auth := context.WithValue(context.Background(), quay_api.ContextAccessToken, "ACCESSTOKENSTRING")
305-
r, err := client.Service.Operation(auth, args)
306-
```
307-
308-
Or via OAuth2 module to automatically refresh tokens and perform user authentication.
309-
310-
```go
311-
import "golang.org/x/oauth2"
312-
313-
/* Perform OAuth2 round trip request and obtain a token */
314-
315-
tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
316-
auth := context.WithValue(oauth2.NoContext, quay_api.ContextOAuth2, tokenSource)
317-
r, err := client.Service.Operation(auth, args)
318-
```
282+
Endpoints do not require authorization.
319283

320284

321285
## Documentation for Utility Methods

0 commit comments

Comments
 (0)