TheHive icon indicating copy to clipboard operation
TheHive copied to clipboard

[Question]

Open gschneller opened this issue 2 years ago • 2 comments

Request Type

Question

Work Environment

Question Answer
OS version (server) Docker thehiveproject/thehive4:4.0.5-1
OS version (client) Ubuntu,
Virtualized Env. True /
Dedicated RAM 8 GB
vCPU 4
TheHive version / git hash 4.0.5-1
Package Type Docker
Database Cassandra
Index type Lucene
Attachments storage Local
Browser type & version Chrome: Version 96.0.4664.45

Question

Why aulogin don't work?

I configure Authentification with keycloak

user.autoCreateOnSso: true
user.profileFieldName: profile
user.organisationFieldName: organisation
user.defaults.organisation:example

auth {
  sso {
    autologin: true
    autocreate: true
  }
  providers: [
    {name: session}
    {name: basic, realm: thehive}
    {name: local}
    {name: key}
    {
      ##############
      # Keycloak
      ##############
      name: oauth2
      clientId: "thehive"
      clientSecret: "XXXXXXXXXXX"
      redirectUri: "http://example.com/thehive/api/ssoLogin"
      responseType: "code"
      grantType: "authorization_code"
      authorizationUrl: "http://example.com/keycloak/auth/realms/Reveelium/protocol/openid-connect/auth"
      authorizationHeader: "Bearer"
      tokenUrl: "http://keycloak:8080/auth/realms/Reveelium/protocol/openid-connect/token"
      userUrl: "http://keycloak:8080/auth/realms/Reveelium/protocol/openid-connect/userinfo"
      scope: ["openid", "email"]
      userIdField: "email"
    }
  ]
}

And at the fisrt conection, the TheHive GUI login is dispayed with the "Sign In with the SSO", I want tb be rediert directly on Keycloak login!

gschneller avatar Dec 03 '21 16:12 gschneller

Hi @gschneller, same problem here. Did you find a solution ? Looks like this parameter was removed from TH4, don't know why.

X0x1RG9f avatar Mar 30 '22 12:03 X0x1RG9f

Yes @gschneller , In my case also TheHive GUI login is dispayed with the "Sign In with the SSO", I want tb be rediert directly on Keycloak login! Does anyone have any solution on this?

mauli9999 avatar Dec 30 '22 08:12 mauli9999