-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc8d947
commit 569e091
Showing
4 changed files
with
61 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Generate | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
generate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.21 | ||
- run: make generate | ||
- name: Indicate generation issues | ||
run: git diff HEAD --exit-code --color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
#!/bin/bash | ||
|
||
mockgen -package internal -destination internal/hash.go authelia.com/provider/oauth2 Hasher | ||
mockgen -package internal -destination internal/storage.go authelia.com/provider/oauth2 Storage | ||
mockgen -package internal -destination internal/transactional.go authelia.com/provider/oauth2/storage Transactional | ||
mockgen -package internal -destination internal/oauth2_storage.go authelia.com/provider/oauth2/handler/oauth2 CoreStorage | ||
mockgen -package internal -destination internal/oauth2_strategy.go authelia.com/provider/oauth2/handler/oauth2 CoreStrategy | ||
mockgen -package internal -destination internal/authorize_code_storage.go authelia.com/provider/oauth2/handler/oauth2 AuthorizeCodeStorage | ||
mockgen -package internal -destination internal/oauth2_auth_jwt_storage.go authelia.com/provider/oauth2/handler/rfc7523 RFC7523KeyStorage | ||
mockgen -package internal -destination internal/access_token_storage.go authelia.com/provider/oauth2/handler/oauth2 AccessTokenStorage | ||
mockgen -package internal -destination internal/refresh_token_strategy.go authelia.com/provider/oauth2/handler/oauth2 RefreshTokenStorage | ||
mockgen -package internal -destination internal/oauth2_client_storage.go authelia.com/provider/oauth2/handler/oauth2 ClientCredentialsGrantStorage | ||
mockgen -package internal -destination internal/oauth2_owner_storage.go authelia.com/provider/oauth2/handler/oauth2 ResourceOwnerPasswordCredentialsGrantStorage | ||
mockgen -package internal -destination internal/oauth2_revoke_storage.go authelia.com/provider/oauth2/handler/oauth2 TokenRevocationStorage | ||
mockgen -package internal -destination internal/openid_id_token_storage.go authelia.com/provider/oauth2/handler/openid OpenIDConnectRequestStorage | ||
mockgen -package internal -destination internal/access_token_strategy.go authelia.com/provider/oauth2/handler/oauth2 AccessTokenStrategy | ||
mockgen -package internal -destination internal/refresh_token_strategy.go authelia.com/provider/oauth2/handler/oauth2 RefreshTokenStrategy | ||
mockgen -package internal -destination internal/authorize_code_strategy.go authelia.com/provider/oauth2/handler/oauth2 AuthorizeCodeStrategy | ||
mockgen -package internal -destination internal/id_token_strategy.go authelia.com/provider/oauth2/handler/openid OpenIDConnectTokenStrategy | ||
mockgen -package internal -destination internal/pkce_storage_strategy.go authelia.com/provider/oauth2/handler/pkce PKCERequestStorage | ||
mockgen -package internal -destination internal/authorize_handler.go authelia.com/provider/oauth2 AuthorizeEndpointHandler | ||
mockgen -package internal -destination internal/revoke_handler.go authelia.com/provider/oauth2 RevocationHandler | ||
mockgen -package internal -destination internal/token_handler.go authelia.com/provider/oauth2 TokenEndpointHandler | ||
mockgen -package internal -destination internal/introspector.go authelia.com/provider/oauth2 TokenIntrospector | ||
mockgen -package internal -destination internal/client.go authelia.com/provider/oauth2 Client | ||
mockgen -package internal -destination internal/request.go authelia.com/provider/oauth2 Requester | ||
mockgen -package internal -destination internal/access_request.go authelia.com/provider/oauth2 AccessRequester | ||
mockgen -package internal -destination internal/access_response.go authelia.com/provider/oauth2 AccessResponder | ||
mockgen -package internal -destination internal/authorize_request.go authelia.com/provider/oauth2 AuthorizeRequester | ||
mockgen -package internal -destination internal/authorize_response.go authelia.com/provider/oauth2 AuthorizeResponder | ||
|
||
goimports -w internal/ | ||
${MOCKGEN:-mockgen} -package internal -destination internal/hash.go authelia.com/provider/oauth2 Hasher | ||
${MOCKGEN:-mockgen} -package internal -destination internal/storage.go authelia.com/provider/oauth2 Storage | ||
${MOCKGEN:-mockgen} -package internal -destination internal/transactional.go authelia.com/provider/oauth2/storage Transactional | ||
${MOCKGEN:-mockgen} -package internal -destination internal/oauth2_storage.go authelia.com/provider/oauth2/handler/oauth2 CoreStorage | ||
${MOCKGEN:-mockgen} -package internal -destination internal/oauth2_strategy.go authelia.com/provider/oauth2/handler/oauth2 CoreStrategy | ||
${MOCKGEN:-mockgen} -package internal -destination internal/authorize_code_storage.go authelia.com/provider/oauth2/handler/oauth2 AuthorizeCodeStorage | ||
${MOCKGEN:-mockgen} -package internal -destination internal/oauth2_auth_jwt_storage.go authelia.com/provider/oauth2/handler/rfc7523 RFC7523KeyStorage | ||
${MOCKGEN:-mockgen} -package internal -destination internal/access_token_storage.go authelia.com/provider/oauth2/handler/oauth2 AccessTokenStorage | ||
${MOCKGEN:-mockgen} -package internal -destination internal/refresh_token_strategy.go authelia.com/provider/oauth2/handler/oauth2 RefreshTokenStorage | ||
${MOCKGEN:-mockgen} -package internal -destination internal/oauth2_client_storage.go authelia.com/provider/oauth2/handler/oauth2 ClientCredentialsGrantStorage | ||
${MOCKGEN:-mockgen} -package internal -destination internal/oauth2_owner_storage.go authelia.com/provider/oauth2/handler/oauth2 ResourceOwnerPasswordCredentialsGrantStorage | ||
${MOCKGEN:-mockgen} -package internal -destination internal/oauth2_revoke_storage.go authelia.com/provider/oauth2/handler/oauth2 TokenRevocationStorage | ||
${MOCKGEN:-mockgen} -package internal -destination internal/openid_id_token_storage.go authelia.com/provider/oauth2/handler/openid OpenIDConnectRequestStorage | ||
${MOCKGEN:-mockgen} -package internal -destination internal/access_token_strategy.go authelia.com/provider/oauth2/handler/oauth2 AccessTokenStrategy | ||
${MOCKGEN:-mockgen} -package internal -destination internal/refresh_token_strategy.go authelia.com/provider/oauth2/handler/oauth2 RefreshTokenStrategy | ||
${MOCKGEN:-mockgen} -package internal -destination internal/authorize_code_strategy.go authelia.com/provider/oauth2/handler/oauth2 AuthorizeCodeStrategy | ||
${MOCKGEN:-mockgen} -package internal -destination internal/id_token_strategy.go authelia.com/provider/oauth2/handler/openid OpenIDConnectTokenStrategy | ||
${MOCKGEN:-mockgen} -package internal -destination internal/pkce_storage_strategy.go authelia.com/provider/oauth2/handler/pkce PKCERequestStorage | ||
${MOCKGEN:-mockgen} -package internal -destination internal/authorize_handler.go authelia.com/provider/oauth2 AuthorizeEndpointHandler | ||
${MOCKGEN:-mockgen} -package internal -destination internal/revoke_handler.go authelia.com/provider/oauth2 RevocationHandler | ||
${MOCKGEN:-mockgen} -package internal -destination internal/token_handler.go authelia.com/provider/oauth2 TokenEndpointHandler | ||
${MOCKGEN:-mockgen} -package internal -destination internal/introspector.go authelia.com/provider/oauth2 TokenIntrospector | ||
${MOCKGEN:-mockgen} -package internal -destination internal/client.go authelia.com/provider/oauth2 Client | ||
${MOCKGEN:-mockgen} -package internal -destination internal/request.go authelia.com/provider/oauth2 Requester | ||
${MOCKGEN:-mockgen} -package internal -destination internal/access_request.go authelia.com/provider/oauth2 AccessRequester | ||
${MOCKGEN:-mockgen} -package internal -destination internal/access_response.go authelia.com/provider/oauth2 AccessResponder | ||
${MOCKGEN:-mockgen} -package internal -destination internal/authorize_request.go authelia.com/provider/oauth2 AuthorizeRequester | ||
${MOCKGEN:-mockgen} -package internal -destination internal/authorize_response.go authelia.com/provider/oauth2 AuthorizeResponder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters