function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sites_NewbieSites_Newbie 

"Authorization Required" to access new web page

Hi there,

 

I have my company's website in Force.com sites.  I have been building and linking pages without any issues.  Last night I added a new "news story" to my company's website and linked this news story to the main "News" web page.  Now when I go to my website and click on the new link, I get the following error message:

 

"Authorization Required
You must first log in or register before accessing this page.
If you have forgotten your password, click Forgot Password to reset it."

 

Here's the page that triggers the error message: http://www.healthysoil.com/news_story_12

 

I've never had this problem before.  Is this related to the new visualpages security settings?  I click on "Security" for my new page and the settings are identical to many of my old pages... Although some of my old pages include an "enabled profile" that is not an "available profile" for me to add in the security settings for my new page.

 

Does that make any sense?!

 

Would appreciate any help.

Thank you!

Ryan-GuestRyan-Guest

On the site detail page there is a button called "Public Access Settings". 

 

Click on that button and make sure you have turned on CRUD and field level security for each of the objects and fields you use in your page.

 

 

Sites_NewbieSites_Newbie

Thanks so much Ryan.  Can you walk me through where to find the sites detail page / "public access settings"?

 

Setup --> Develop --> Sites --> Site edit --> ...?


Thanks again.

Sites_NewbieSites_Newbie

Hi Ryan,

 

I found the Public Access Settings.  FIgured out the problem.

 

- The profile required to view my website is "SAM."

- On the security settings of my new page, I need to enable the "SAM" profile however "SAM" is not in my list of available profiles...

- How can I add "SAM" to my list of available profiles for the new web page?

 

Thanks again.

 

EIE50EIE50

Hi,

 

Why do you need a profile to view public website? If you add the new page / all the pages or classes to the Public Access Settings - Guest user license Profile, you would be able to view the site without a problem.

 

If you have to login, get authenticated then you might need a profile.

 

I couldn't understand what you meant as Security Settings of your new page?

 

Thanks.

Krishna RadhakrishnanKrishna Radhakrishnan
The actual problem is to Fix the Site for REsources.
In the 'Chat Button And Automated Invitations', click on 'Site For Resources'.
In that allowed Site Visual pages are mentioned. Add your new VisualForce page in that. 
Satya Raj 10Satya Raj 10
@Krishna - Can you share the screenshot to find where you fixed it.