For almost a week now I have been trying to implement Authentication in a Xamarin.Forms(Android, iOS and Windows) Project to no avail. All the instructions and guides are either out of date, not clear or not functioning.
This Article from Xamarin was last updated in August 2016 while the MSAL has changed making this article obsolete. in this article they make use of PlatformParameters which has been replaced by UIParent.
This Example from Azure AD B2C documentation page from after implementing has UIRequiredException as calling AcquireTokenSilentAsync is not functioning since as at that time there is no user present.
This is getting really frustrating and would appreciate assistance or some step by step to implement this. All am trying to do is enable Authentication and Authorization for my Xamarin.Forms App and API Endpoint. Any pointer to good working code would be appreciated.
It would be helpful if there is an official updated guide or Video tutorial to help with this.
had exactly the same issue with using this project for a demo.
Use this version:
https://azure.microsoft.com/en-us/resources/samples/active-directory-b2c-xamarin-native/
It is the updated version with MSAL 2.4 preview. Its working on all samples/droid/ios/uwp
Here is a much fresher sample on how to get this done (as of June 20,2017 )
https://github.com/Azure-Samples/active-directory-b2c-xamarin-native
We have had issues with the same example. https://github.com/Azure-Samples/active-directory-b2c-xamarin-native
I have pretty much given up and I am looking at other solutions now.
Related
I have created an OData Service using .Net 6 / OData 8 and am trying to authenticate using Organisational Account in Excel. I can test the authentication sucesfully in Postman and also in my web App that uses the authenticated service.
However, if I try and create an OData Feed in Excel and authenticate using [Organisational Account], I get an error "We were unable to connect because this credential type isn't supported for this resource.".
Microsoft seems to indicate that it is not supported to connect to "arbitrary" services per the following link.
https://learn.microsoft.com/en-us/power-query/connectors/odatafeed#authenticating-to-arbitrary-services
However, this is a pretty big limitation and I'm interested to know if anyone has been able to solve this problem yet.
I won't go into the configuration of my web api, suffice it to say that I have tried every possible combination of builder.Services.AddAuthentication()..... that I can find and they all seem to have a similar issue - ie. I can use the WebApi for everything that I need it for - except Excel.
A quick Google search gets many, many hits (and I think that I have read them all - ..... twice), but try as I might I haven't yet found one that has an answer that works.
The following link showed some promise, which indicated it might be possible to change the audiencce, but I could not make it work.
https://www.c-sharpcorner.com/article/azure-odata-feed-web-api-authentication-setup-with-azure-ad/
I did find another promising link that I can't seem to find again that indicated we could add the Office 365 Client Id to the list of Authorised Client Applications under Expose an Api of the app registration in Azure AD B2C. I did that, with not success.
I'm really at my wits end on this and have been trying to get a solution on and off the last couple of weeks. Would really appreciate any help from others who might have tried and succeeded at this.
Confirming that I have now worked out how to do this and have posted the solution to the following SO thread. connecting-excel-to-oauth-api-on-azure
There are a number of steps to the solutions, so won't attempt to summarise them here.
Recently i have discovered that ability to change to Classic Experience of Azure Function portal is not there right now. I have used some functions that has been created in old Power Shell module and since that i had to create it with Experimental Language.
Is there any others experiencing same issue as mine. Please help me on this.
Are you attempting to create a new function or view old ones? I'm in a similar position, and found an older work around for calling PnP from site script via .NET. MS docs still reference the method you are talking about, though.
https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-pnp-provisioning#create-the-azure-function
https://www.sharepointnutsandbolts.com/2019/01/Site-Designs-PnP-Part1.html
Found some additional documentation here!
https://github.com/SharePoint/sp-dev-docs/blob/master/docs/declarative-customization/site-design-pnp-provisioning.md
Last date edited was 07/04/2020.
The new portal experience of Azure functions became general this year.
You can check out this YouTube video published my Microsoft about the "How to" of this experience: https://www.youtube.com/watch?v=0bdT_9uOqkg
If you don't want this view, you can Switch to classic experience.
I'm working with Visual Studio Online, and trying to use work with Oauth, which will allow me to use RESTFUL API of VSTS in my APP. How can I work. Please give a detailed answer, I'm confused.
One more thing is, while registering App in VSTS, there are two fields Application Website and Authorization Callback URL, which are making me more confused, what is the purpose of these two fields while registering App for Oauth.
First go read some documentation on Oauth and how it works.
On a high level, how does OAuth 2 work?
Then go read the documentation, which includes code examples, for VSO.
https://www.visualstudio.com/en-us/integrate/api/overview
Once you run into a specific issue, ask your question here with examples of what you tried.
i tried to use app for OAuth on my site. Got 400 Bad request on Visual Studio Online site everytime when code executed (user redirected to next URL from sample app):
return String.Format("{0}?client_id={1}&response_type=Assertion&state={2}&scope={3}&redirect_uri={4}",
ConfigurationManager.AppSettings["AuthUrl"],
ConfigurationManager.AppSettings["AppId"],
"state",
ConfigurationManager.AppSettings["Scope"],
ConfigurationManager.AppSettings["CallbackUrl"]
);
What`s wrong? Is there is some limitation for values in App registration page above?
I have a restful API that I built using node.js and node-restify. I am up to the part where I have to secure it. Apparently, it is easy to find out how to use OAuth 2.0 as a client but hard to find out how to set up a provider. I guess my google skills aren't as good as they used to be.
Can someone point me in the direction of where to start? Is there a basic OAuth 2.0 server provider library for node?
I don't have a problem with creating my own library if need be but I looked at the spec, and being that it is a spec, it seems overly complicated. I would think that there would be some sort of tutorial, webcast, or "hello World" style project that broke it down for the dummy in me.
Thanks for your thoughts.
After some heavy googling, I came up with a lead. I spoke with a kindhearted genius who began work on such a project. He decided to finish up his code and to release it to the world.
The package is called restify-OAuth2.
Here is a link to the package. Here is the link to the github page.
Thanks for all your help Domenic.
Hope You all are fine and also in one of your best of moods.
I have an issue with twitter status updating.
As I am using oAuth API for Twitter Integration in my iPhone, I found a sample code , and run it. code is quite useful, but i found the functionality for updating status is not working, and functionality of getting status works.
I found sample code from the link :
http://github.com/jaanus/PlainOAuth
I have tried lot, before posting this issue here. kindly have a look and help me out to solve the issue.
Looking Forwards.
Arun Thakkar.
Not sure what the specific problem is, but I remember having to do a fair amount of head-banging to get Twitter OAuth to work.
Nevertheless, I have a working implementation in one of my public GitHub projects. Feel free to use it—apps based on it have already been approved into the App Store.