Giter Site home page Giter Site logo

Comments (6)

xet7 avatar xet7 commented on May 25, 2024

@liferadioat

As login method, only popup login currently works. Not redirect login.

from wekan.

liferadioat avatar liferadioat commented on May 25, 2024

@liferadioat

As login method, only popup login currently works. Not redirect login.

Thanks, I´ve set it at docker-compose.yml
- OAUTH2_ENABLED=true
# OAuth2 login style: popup or redirect.
- OAUTH2_LOGIN_STYLE=popup

Popup is shown, but there is no redirect after popup is closed. What could I´ve missed?

from wekan.

xet7 avatar xet7 commented on May 25, 2024

@liferadioat

Add this:

- DEBUG=true

And after login, write command to see is login successful or not:

docker logs wekan-app

Also, popup needs to be allowed at webbrowser, like Firefox. Some browsers block popups.

from wekan.

xet7 avatar xet7 commented on May 25, 2024

@liferadioat

Are you using these settings? Or something else?

https://github.com/wekan/wekan/wiki/Azure

Did you configure redirect/return URL at Azure web console?

from wekan.

liferadioat avatar liferadioat commented on May 25, 2024

Yes, this is configured:
2024-03-07_11h34_22

The docker log says:

{"line":"87","file":"percolate_synced-cron.js","message":"SyncedCron: Scheduled \"notification_cleanup\" next run @Thu Mar 07 2024 10:37:27 GMT+0000 (Coordinated Universal Time)","time":{"$date":1709807848109},"level":"info"}
{"line":"406","file":"oauth_server.js","message":"Error in OAuth Server: invalid_request","time":{"$date":1709807886564},"level":"warn"}

My docker-compose settings:

      - OAUTH2_ENABLED=true
      # Optional OAuth2 CA Cert, see https://github.com/wekan/wekan/issues/3299
      #- OAUTH2_CA_CERT=ABCD1234
      # Use OAuth2 ADFS additional changes. Also needs OAUTH2_ENABLED=true setting.
      #- OAUTH2_ADFS_ENABLED=false
      # Azure AD B2C. https://github.com/wekan/wekan/issues/5242
      #- OAUTH2_B2C_ENABLED=false
      # OAuth2 login style: popup or redirect.
      - OAUTH2_LOGIN_STYLE=popup
      # Application GUID captured during app registration:
      - OAUTH2_CLIENT_ID=6570fe40-xxxx
      # Secret key generated during app registration:
      - OAUTH2_SECRET=9dd29917-xxx
      - OAUTH2_SERVER_URL=https://login.microsoftonline.com/
      - OAUTH2_AUTH_ENDPOINT=/common/oauth2/v2.0/authorize
      - OAUTH2_USERINFO_ENDPOINT=https://graph.microsoft.com/oidc/userinfo
      - OAUTH2_TOKEN_ENDPOINT=/oauth2/v2.0/token
      # The claim name you want to map to the unique ID field:
      - OAUTH2_ID_MAP=email
      # The claim name you want to map to the username field:
      - OAUTH2_USERNAME_MAP=email
      # The claim name you want to map to the full name field:
      - OAUTH2_FULLNAME_MAP=name
      # The claim name you want to map to the email field:
      - OAUTH2_EMAIL_MAP=email

from wekan.

liferadioat avatar liferadioat commented on May 25, 2024

I´ve solved it. The docker-compose.yml template is wrong:
#- OAUTH2_SERVER_URL=https://login.microsoftonline.com/
has to be
#- OAUTH2_SERVER_URL=https://login.microsoftonline.com/tenant-id

But there is a little bug: the name of the OIDC login button changes the name when the login works to the default name.

from wekan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.