Skip to content

[Bug]: Licence for SSO and api endpoint unauthorized #5163

@awb-gt

Description

@awb-gt

Installation Method

Docker fat

The Problem

We upgraded to Stirling PDF 2.1.0, but SSO no longer works like it did with version 1.6.0. In the callback, I see that the oauthcallback returns "/error:OAuth=oAuth2RequiresLicense.". Do we need a license to use SSO?

Also, during the initial load, there are many unauthorized requests (/api/v1/info/wau, /api/v1/config/config-app, and /api/v1/config/endpoints-availability). Is this related to the missing license?

Finally when i set up SECURITY_OAUTH2_SCOPES="openid, email, profile" (or "openid email profile") I have an error on load and I am forced to only use openid.

Image Image

Thank you, and congratulations on the new version, which looks great.

Version of Stirling-PDF

2.1.0

Last Working Version of Stirling-PDF

1.6.0

Page Where the Problem Occurred

/login

Docker Configuration

- SECURITY_OAUTH2_ENABLED=true
- SECURITY_OAUTH2_AUTOCREATEUSER=true
- SECURITY_OAUTH2_ISSUER=https://my-oauth
- SECURITY_OAUTH2_CLIENTID=my-client-id
- SECURITY_OAUTH2_CLIENTSECRET=my-client-secret
- SECURITY_OAUTH2_BLOCKREGISTRATION=false
- SECURITY_OAUTH2_SCOPES=openid
- SECURITY_OAUTH2_USEASUSERNAME=email
- SECURITY_OAUTH2_PROVIDER=my-provider

Relevant Log Output

Additional Information

No response

Browsers Affected

No response

No Duplicate of the Issue

  • I have verified that there are no existing issues raised related to my problem.

Metadata

Metadata

Assignees

Labels

Back EndIssues related to back-end developmentv2Issues or pull requests related to the v2 branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions