Self Hosted Supabase Setup - authentication

I have tried following the Supabase docs and googling but i cannot seem to get a basic authentication flow to work.
The stack i would like to use is keycloak(docker), supabase(self hosted) and nextjs to build the app.
I am using The following boilerplate just to test the authentication flow https://github.com/mryechkin/nextjs-supabase-auth
Can someone explain the the setup required to get the boilerplate project to work on a local machine (localhost) with the self hosted supabase and keycloak oatuh?

Related

Netlify with Basic authentication

I have created a Netlify web application using Vue.js as frontend framework and netlify function on backend side. I am trying to apply Basic authentication using build in Netlify functionality with _headers file. I only need the Basic Authentication for staging environment so I followed the guidens from this article, but the problem is that the Basic-Auth promts for username and password on every xhr call that the frontend is making to Netlify functions. Is there a solution for this, or have anyone experienced or did configuration like this before. I am looking for solution no matter if it is with configuration file or custom code implementation. Thank you!

Windows Authentication in Blazor WASM

I am implementing a WebApp in our company's intranet with Blazor WebAssembly. I need to make API-Calls to our DevOps Server hosted in our intranet and need to use Windows Authentication to access the API. In the former used WPF Client it was enough to just add the UseDefaultCredentials-Flag on the HttpClient, but that does not work in WebAssembly anymore since the App is running in the browser. The Microsoft Docs state We don't recommend using Windows Authentication with Blazor Webassembly, but not recommend does not mean not support, so it has to be possible somehow, to attach the current App-User's Windows Credentials(Token) to the API Call. Unfortunately there exists no example on the docs page on how to implement this and I have not found any code on how to tackle this, although on some forums people wrote that it is possible, but did not include the How in their comments.
I am using .NET5 for both Server and Client and need to make the Api-Call with Windows Authentication from the Client, not the Server as most examples are using it, as my Server-Project uses the same User for all Requests but I need the User of the Client-Project.
Any kind of help is appreciated.

Has anyone successfully implemented Azure AD auth using Server Side Rendering Angular (Angular Universal)?

Currently We have an app that is using Angular Universal for Rendering. We have MSAL auth installed but we get random infinite loops with auth, especially new users.
We have tried catching these events and handling them but it does not seem to work. Looked at some documentation that says, MSAL is still not supported with Node and Server Side Apps.
I cannot use AUTH0. Does anyone have any ideas on how to accomplish the auth against azure ad in this type of app?
MSAL.js at the moment works only with single page applications. Support for Node applications is on the roadmap.
Still, there are a number of 3rd party libraries that you can use for this. I would suggest using passport-azure-ad. You can see a sample application here.

Bot Authentication in Teams deployed on Azure

I am trying to deploy the nodejs not auth-code sample using manual deployment - through zip deploy. The bot does respond for the first few questions, but when it comes to authentication (using the dialog), it gets stuck and is not able to proceed further. The error it gives is :
No webpage was found for the web address: azurewebsite/html/auth-start.html. But I have the public folder deployed on azure under kudu services. Please help.
The example used:
https://github.com/OfficeDev/microsoft-teams-sample-auth-node

Oauth Authentication for VSO with WCF service

I have followed all the steps mentioned in the following link to implement oAuth authentication for connecting to VSO:
https://www.visualstudio.com/en-us/integrate/get-started/auth/oauth
It involves creating a azure web site and the token in returned to it which is used for further processing.
My requirement is to create a service which will connect to VSO using oAuth authentication and fetch/create the work items.
I want to know how to configure the call back url in case of using a service.
Firstly, please take note that: Right now, it is only supported to register web application, it is impossible to register a WCF service project.
If you would like to register a web application and would like to get the call back URL, please check my reply in this link for the detailed steps: callbackurl while connecting to vso using oAuth