Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [token]

The tag has no usage guidance.

0
votes
1answer
27 views

Creating a secure .Net WebAPI for Sharepoint

I have created a Custom Web API using .net C# that will be called in my sharepoint online and i was wondering if is there is anything i could use from sharepoint and use it in my WebApi to verify that ...
0
votes
0answers
23 views

SharePoint 2013 Token not refreshing

What does it mean from the below uls log entry "Skip refresh token, because the token in memory is not fresh" Here what token is it referring too? SharePoint Token for service account or anything ...
0
votes
0answers
16 views

S2S authorization only working when user has an active session in SharePoint?

I am working on a provider-hosted app that uses high-trust S2S authorization (please pardon me if my terminology isn't quite right) to access SharePoint on the user's behalf. In my test environment, ...
1
vote
2answers
344 views

WebRequest to Sharepoint site using Access Token returns 403

I need to create web request to specific page in SharePoint Online using Access Token in order to get certain Header information, but I keep getting 403 and I'm not sure why. After toying with access ...
0
votes
1answer
398 views

Aquire access token via HTTP request

I'm writing a Java app that aquires a token via the provided MS utility lib called adal4j. It provides finished methods, I just need to provide the username, password, authority and my clientid. The ...
1
vote
0answers
187 views

Get JWT Tokens in SharePoint Online

There is a function in Outlook API called getCallbackTokenAsync([options], callback); Office.context.mailbox.getCallbackTokenAsync How can I get such function in SharePoint Online? Is there an ...
1
vote
1answer
229 views

Error: Failed to refresh token in Azure AD APPS for SharePoint Online

I am creating an Azure AD Single tenant Application using asp.net to Provisioning SharePoint site collections. I am able to create site collections as the APP is giving full rights on SharePoint in ...
9
votes
2answers
4k views

Oauth Authentication for SharePoint REST API

Based on my research and this Video, I was under the impression that switching between the Graph API and the SharePoint REST API should be pretty straight forward. After obtaining an OAuth2 token, I ...
1
vote
0answers
215 views

Session leakage

I use SharePoint to host our website on the internet. Site users use Form-based authentication to log in. These past few days, the site has a very weird issue with people logging in and being ...
1
vote
2answers
415 views

Error message “value does not fall within the expected range”

I got Error message “value does not fall within the expected range” in QA. It is working fine in DEV. I had increased threshold value from 12 to 20 in QA and working fine. but client does not approved ...
0
votes
1answer
248 views

Filter [ME] is not working after migration from Domain A to Domain B. Working for user with entry in Only Domain B

I am the primary site collection administrator on my SharePoint 2013 environment. I have a task list with a filter view: "assigned to = [me]". My own tasks show fine when I am logged in. However ...
1
vote
0answers
90 views

How can we consume the SAML token in SharePoint 2013?

Can anybody tell me , how can we consume a SAML token in SharePoint 2013 and identify whether the user with SAML token is valid or not . Also how can we send the appropriate response to SAML again ? ...
4
votes
1answer
222 views

Using REST api to detect when server is finished processing changes to list

SOLUTION FOUND As it turns out the simplest solution ever was to use simply forgo any of the following code and do this var posts = /*All the queries that will update your list*/ $q.all(posts).then(...
1
vote
1answer
587 views

Alternative for ADAL in SharePoint hosted app

Is there any alternative for ADAL. I have created SharePoint hosted app. For every new build app deployed with new url with new Id like https://mysite-a08081eeabb935.sharepoint.com/sites/test/...
3
votes
0answers
851 views

{StandardTokens} token in CommandAction Url does not get replaced

I have a provider hosted add-in running on a SharePoint Online development site that has several lists as part of the solution. My goal is on when somebody clicks a Ribbon CustomAction associated ...
0
votes
0answers
207 views

Securing an on Premise non-SharePoint .NET WEBAPI method with o365 Authentication token

We have a custom (non-sharepoint) .NET MVC WebAPI service running on premise. At a high level, possible somehow to secure methods on that web service using o365/SharePoint Online Authentication ...
3
votes
0answers
603 views

Sharepoint Authentication via REST API

I would like to connect to Sharepoint via REST API and Javascript. Based on readings I've done, first you need to have Security Token, then you use this Security Token to get FedAuth cookies, ...
1
vote
0answers
123 views

Security Token Generation in Trusted Identity Provider for SharePoint 2013

I am using Thinktecture Identity Provider for SharePoint 2013. I know that, for FBA, we can generate security token for user authentication using SPSecurityContext.SecurityTokenForFormsAuthentication. ...
0
votes
1answer
814 views

Will AllowAppOnlyPolicy and CreateUserClientContextForSPHost elevate user rights

If one has enabled AllowAppOnlyPolicy and use the CreateUserClientContextForSPHost method will I elevate the users rights, or is this only the case when you create app only token?
1
vote
2answers
731 views

SharePoint Online - Token empty error

I am creating an app for SharePoint online with provider hosted app model. I followed all the steps to create an app and ensured both web.config and appmanifest.xml has same Client id. Though it ...
1
vote
1answer
2k views

AppSecret key lifetime and expiration

I see when I use Seller Dashboard max token lifetime is 3 year. Does anybody know it how long it be valid if I use AppRegnew.aspx page?
0
votes
0answers
237 views

Access Token (Java) [duplicate]

How do you get Access Token using REST? I'm trying to upload a folder in my Document Library using REST but it requires a Access Token in the header. Here is the code: public void createFolder(...
1
vote
1answer
313 views

Office 365 Authorization without login

I am developing a Mobile app which sends data to SharePoint list (SharePoint Online, Office 365). The users of the app should be able to save data in the list silently, without logging. Is this ...
2
votes
2answers
3k views

SharePoint provider hosted app context token is null in Client Web Part

I have a working SharePoint provider hosted app, with an MVC web application residing on an Azure Web site. Entering the full screen app page, everything looks as expected. Adding a client web part ...
0
votes
2answers
582 views

Publish Provider-Hosted App Problem

I have a default provider-hosted application that prints the site title. When I publish it to my Windows Azure it works great, but when I publish it to my company server (Windows Server 2008 R2, IIS ...
0
votes
2answers
639 views

SPUser have logon into Site Collection?

Possible to loop through all Site Collection Users and check if they have ever logon into the Site Collection and when? db table dbo.UserInfo tokens info can be useful? this script can retrieve the ...
4
votes
3answers
3k views

SPAppToken (context token) is null

I have a Sharepoint 2013 on premise environment for which I am developing an provider hosted app using Visual Studio. The Visual Studio project has an app project which contains a custom ribbon ...
2
votes
3answers
5k views

Get context token for SharePoint 2013 provider hosted app (on-premise) with web project hosted on azure

I have an on-premise SharePoint environment for which I'm developing a provider hosted app using visual studio. The web project is hosted an azure. The app project contains a custom ribbon button that ...
1
vote
0answers
589 views

SharePoint Document Folders Not Accessible

I apologize if this question is dealt with elsewhere, but so far I haven't been able to locate it. My company is running SharePoint Server 2007. I am an owner/admin of several sites and they all ...
1
vote
1answer
1k views

Difference between DynamicMasterPageFile and Static Token

I am reading article http://blogs.msdn.com/b/bgeoffro/archive/2009/06/22/master-pages-revisited-references-to-master-pages-in-sharepoint.aspx but I am not sure what they mean by ...
0
votes
1answer
281 views

{ListId} token is not replaced by the Id of the List

I'm extremly new with Sharepoint 2010. In my masterpage, I display a list of news. I'd like to create a permanant "Add news" at the bottom of the list (programmatically) but I can't find the ListId. I'...
0
votes
1answer
111 views

SP2007 using Source token in link

In SharePoint 2007 in some occasions i see that when im redirected to some pages etc, i see a source in query string, and this i can use to be redirected back to the original page. I've read on msdn ...
4
votes
1answer
2k views

SPWeb.GetUserToken(x) vs SPWeb.Users[x].UserToken

I'm working in code to elevate an account with the Read role to a specific account with the Contribute role in order to create a list item. I currently get the SPUserToken for the contribution ...
0
votes
2answers
540 views

Authentication with username only

I currently have an MVC website that uses forms authentication using the default SqlMembershipProvider. In this website I can automatically log a user in by simply having a GUID that corresponds to ...
1
vote
1answer
275 views

extend caml token ?

is there an hook or interface or whatever that could be used for extending token functionality of sharepoint? For example [Me] token is insufficient for me and I would like to for example develop my ...
3
votes
1answer
9k views

~ in ~site/_catalogs/masterpage/m.master is ignored

I've received a WSP where the contained pages reference the master page as shown in the title. The pages are deployed to a folder under the Site (ie http://app.contoso.com/PagesFolder/welcome.aspx). ...
0
votes
3answers
7k views

Include Javascript in Custom Page Layout (Sandbox Solution)

I provision custom page layout through elements.xml I want to add a javascript file to that page to be used by some webparts put on that page through elements.xml as well. In my custom page layout i ...
0
votes
2answers
4k views

Error using SPContext.Current.Web.AllUsers in Visual Studio workflow

I have the following code running in a Visual Studio workflow. I am trying to specify the user who is adding list items in the code because I guess the system account (default for VS) will not allow ...
1
vote
1answer
2k views

How Do I Configure the SharePoint 2010 Security Token Service for Use By Another Web Application?

I am trying to configure the SharePoint Security Token Service on SharePoint 2010 so that another non-SharePoint web application can use SharePoint for authentication (SSO). The only instructions I ...