Community
Showing results for 
Search instead for 
Do you mean 
Reply

Logging into the premium cloud web api

Accepted Solution Solved
New Member
Posts: 5
Country: Australia
Accepted Solution

Logging into the premium cloud web api

I can log into the trial account hosted at.

https://usp1-iis-05.hosted1.act.com/xxxxxx

 

When I try to login to web api I get

 

{
"message": "Unauthorized",
"exceptionMessage": "Could not find any database named 'xxxxxx' configured to be exposed for web access",
"exceptionType": "System.UnauthorizedAccessException",
"stackTrace": " at act.web.api.Auth.ActConnector.CreateInstances(String serverAlias, String database)\r\n at act.web.api.Auth.ActConnector.Connect(AuthenticationMechanisms mechanism, String username, String password, String server, String database)\r\n at act.web.api.Security.AuthMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)"
}

 

How do I configure the database to be exposed for web access?

 

Thanks

 

Keith


Accepted Solutions
Solution
Accepted by topic author csmu
‎04-05-2017 03:19 PM
Moderator
Posts: 451
Country: United_Kingdom

Re: Logging into the premium cloud web api

Thanks for the reply,

 

On Cloud each site has the own specific web.api link for example: https://usp1-iis-05.hosted1.act.com/SITENAMEHERE-api/act.web.api/

you will need to include: -api/act.web.api/ to the end of the website from here you can add the swagger/index.html#/ if you would like to login and receive a Bearer Token.

 

Hope this clears it up for you.

 

View solution in original post


All Replies
Moderator
Posts: 451
Country: United_Kingdom

Re: Logging into the premium cloud web api

Hi Keith, 

 

I would like to know which web.api service you are to logging into? (Act contact link / Zapier) as from starting a trial the web.api will be active and the database available to be connected to.

 

Thanks 

Daniel Horn.

 

New Member
Posts: 5
Country: Australia

Re: Logging into the premium cloud web api

I imagine it's the standard Premium Web Cloud as documented here.

 

https://usp1-iis-05.hosted1.act.com/Act.Web.API/swagger/index.html

 

I can confirm using the same html get method I was able to log into our corporate server.

Thanks Daniel

 

Keith

Solution
Accepted by topic author csmu
‎04-05-2017 03:19 PM
Moderator
Posts: 451
Country: United_Kingdom

Re: Logging into the premium cloud web api

Thanks for the reply,

 

On Cloud each site has the own specific web.api link for example: https://usp1-iis-05.hosted1.act.com/SITENAMEHERE-api/act.web.api/

you will need to include: -api/act.web.api/ to the end of the website from here you can add the swagger/index.html#/ if you would like to login and receive a Bearer Token.

 

Hope this clears it up for you.

 

New Member
Posts: 5
Country: Australia

Re: Logging into the premium cloud web api

Thanks Daniel.

 

Adding /SITENAME-api/ to the url resolved the issue for me.

 

Cheers

 

Keith