Skip to content

Commit

Permalink
Merge pull request #46 from omnivector-solutions/tasks/PENG-1569--add…
Browse files Browse the repository at this point in the history
…-tutorial-for-amrasec-cli

PENG-1569 Updated Keycloak tutorial to use Armasec CLI
  • Loading branch information
dusktreader authored Nov 21, 2023
2 parents 38b72c0 + b55936a commit 76e9dbf
Show file tree
Hide file tree
Showing 32 changed files with 235 additions and 88 deletions.
3 changes: 2 additions & 1 deletion armasec_cli/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def fetch_auth_tokens(ctx: CliContext) -> TokenSet:
),
)

max_poll_time = 6 * 60 # 5 minutes
max_poll_time = 5 * 60 # 5 minutes
terminal_message(
f"""
To complete login, please open the following link in a browser:
Expand Down Expand Up @@ -248,6 +248,7 @@ def fetch_auth_tokens(ctx: CliContext) -> TokenSet:
if "error" in response_data:
if response_data["error"] == "authorization_pending":
logger.debug(f"Token fetch attempt #{tick.counter} failed")
logger.debug(f"Will try again in {device_code_data.interval} seconds")
sleep(device_code_data.interval)
else:
# TODO: Test this failure condition
Expand Down
Binary file removed docs/source/images/keycloak-02.png
Binary file not shown.
Binary file removed docs/source/images/keycloak-03.png
Binary file not shown.
Binary file removed docs/source/images/keycloak-04.png
Binary file not shown.
Binary file removed docs/source/images/keycloak-05.png
Binary file not shown.
Binary file removed docs/source/images/keycloak-06.png
Binary file not shown.
Binary file removed docs/source/images/keycloak-07.png
Binary file not shown.
Binary file removed docs/source/images/keycloak-08.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/keycloak-add-user.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/keycloak-assign-role.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added docs/source/images/keycloak-client-scopes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/keycloak-configure-mapper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/keycloak-create-client.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/keycloak-create-role.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/keycloak-create-user.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/keycloak-device-auth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added docs/source/images/keycloak-grant-access.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/keycloak-log-in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added docs/source/images/keycloak-mapper-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/keycloak-name-client.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/keycloak-name-role.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/keycloak-redirect-uris.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/keycloak-save-password.png
Binary file added docs/source/images/keycloak-select-audience.png
Binary file added docs/source/images/keycloak-select-role.png
Binary file added docs/source/images/keycloak-set-password.png
File renamed without changes
320 changes: 233 additions & 87 deletions docs/source/tutorials/getting_started_with_keycloak.md

Large diffs are not rendered by default.

0 comments on commit 76e9dbf

Please sign in to comment.