greenpau / caddy-security

🔐 Authentication, Authorization, and Accounting (AAA) App and Plugin for Caddy v2. 💎 Implements Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0 (Github, Google, Facebook, Okta, etc.), SAML Authentication. MFA/2FA with App Authenticators and Yubico. 💎 Authorization with JWT/PASETO tokens. 🔐
https://authcrunch.com/
Apache License 2.0
1.32k stars 69 forks source link

NetSuite as a OIDC Provider #343

Open Shaun-York opened 1 month ago

Shaun-York commented 1 month ago

Can this plugin support NetSuite as OIDC Provider?

What should my Caddyfile look like if I wanted to use NetSuite authorization to allow access to a Caddy file server if the user has already logged into the NetSuite UI?

I can't seem to add the required parameters to the "set auth url". The only one that seems to gets included is the "redirect_uri".

example request:

https://<accountID>.app.netsuite.com/app/login/oauth2/authorize.nl?scope=openid+email+rest_webservices&redirect_uri=https%3A%2F%2Fmyapplication.com%2Fnetsuite%2Foauth2callback&response_type=code&client_id=6794a3086e4f61a120350d01b8527aed3631472ef33412212495be65a8fc8d4c&state=ykv2XLx1BpT5Q0F3MRPHb94j&nonce=ym1W7YfRHweT46AcCX8MFajz&code_challenge=Who5QBshz2Mu1Mq6GuAknYA5TnjA-0z7VhAgLloec1s&code_challenge_method=S256

greenpau commented 1 month ago

@Shaun-York , probably yes. Please set up an application for me to test with. Then, connect with me offline.