From cddc95e5af95155af9f788f1bb80dc93932120ca Mon Sep 17 00:00:00 2001 From: Sebastian Wehrmann Date: Wed, 5 Dec 2018 13:08:46 +0100 Subject: [PATCH] Add implementation for auth_url --- keycloak/keycloak_openid.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/keycloak/keycloak_openid.py b/keycloak/keycloak_openid.py index ca4d9ae..335bb79 100644 --- a/keycloak/keycloak_openid.py +++ b/keycloak/keycloak_openid.py @@ -156,7 +156,9 @@ class KeycloakOpenID: :return: """ - return NotImplemented + return (self.well_know()['authorization_endpoint'] + + '?client_id=' + self.client_id + + '&response_type=code&redirect_uri=' + redirect_uri) def token(self, username="", password="", grant_type=["password"], code="", redirect_uri=""): """