Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnDemand with Anonymous and ADFS Not Working #132

Open
renzska opened this issue Dec 4, 2023 · 0 comments
Open

OnDemand with Anonymous and ADFS Not Working #132

renzska opened this issue Dec 4, 2023 · 0 comments

Comments

@renzska
Copy link
Contributor

renzska commented Dec 4, 2023

I am using spsave through gulp. I have an on-premise SP SE site that has anonymous access allowed for the default page, but also has the ability to sign in with ADFS to get access to more of the site. When using OnDemand, electron pops up and immediately disappears and I get a "Cookie array is empty" error message. I have tried setting the siteUrl to a page that forces me to login, which prompts for the login, but then gives a different error: "Response code 404 (Not Found)". I'm assuming this errors out because it is not the root of the site. If I disable anonymous access, it works.

I am passing in the following credsentials:

  var creds = {
    ondemand: true,
    force: false,
    persist: true,
    ttl: 60,
    electron: require('electron'),
  }

Is there a way to force a login through ADFS using OnDemand when Anonymous Access is enabled?

Thanks,

John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant