#Hi I am building new features on top of

1 messages · Page 1 of 1 (latest)

maiden fossil
#

@dry summit HA Auth Provider documentation doesn't specify how I can add external authentication.
It only says how I can added trusted networks and users.

dry summit
#

You'd have to build that into HA

#

Add your own provider

maiden fossil
# dry summit Add your own provider

I want the users to authenticate with AWS Cognito which uses Oauth 2 flow.
Basically don't want to use the login page of HA. Instead want to redirect ths user to custom login page backed by cognito and after login is successful it returns to HA with auth tokens.

dry summit
#

I'd expect that you can do that, if you write your own auth provider module that handles it, and get it merged/build your own images

maiden fossil
#

Okay if I write my own auth provider module which uses AWS Cognito sdk, how will I modify the login page

#

The existing auth provider modules are retrieving the username and password from HA's login page

maiden fossil
#

But getting this error.
2022-05-20 09:34:35 ERROR (MainThread) [homeassistant.auth.providers.command_line] Error while authenticating 'talhasid': [Errno 2] No such file or directory: '/config/keycloak.sh'
Although I have created keycloak.sh inside config folder