swelham

swelham

Does anyone know of an implementation for ueberauth that provides a strategy for logging in with outlook.com and office 365 accounts (Azure AD v2.0 endpoint)?

Showing Posts 1 to 10

OvermindDL1

OvermindDL1

I’ve not seen one yet, but seeing as I’ve made a couple ueberauth strategies so far, it is not at all hard to make if you want to make one yourself. :slight_smile:

swelham

swelham OP

I have started one now, I’m just getting a strange issue where the get_token! function keeps returning a :closed error. Could be something to do with proxy server I am sat behind though! I managed to get past the error but ended up with a timeout issue where the MS login page seemed to just hang and not return a response.

I’m going to try it out when I get home where I’m not be held to ransom by a proxy server.

voltone

voltone

The :closed error is probably due to a TLS incompatibility between Erlang (18.3.2 and later) and Microsoft servers with modern (SHA256) certificates. The issue has come up in various places over the last year or so, and I just happened to blog about it earlier today: https://blog.voltone.net/post/9 (last section).

TL;DR: you will have to force the connection to use TLS v1.2. The way to do this depends a bit on the TLS/HTTPS client you’re using and the way it wraps Erlang’s :ssl options, but if you’re using the OAuth2 library, this post should help.

swelham

swelham OP

:thumbsup:

It’s now working perfectly!

I owe you for that one, it would have taken me ages to figure that out. I have a node project running that is making the same requests and is working fine which was causing me some confusion.

Thanks again!

swelham

swelham OP

For anyone interested, I have just published ueberauth_microsoft to hex and the code for it can be found here.

pedromvieira

pedromvieira

Nice job.

Can I have callback_url option?
My app has subdomains for each tenant.

Thanks.

swelham

swelham OP

I don’t see why not.

I’m going to be a bit busy for the next few days at least so would you mind logging an issue on the repo for this so I don’t forget?

swelham

swelham OP

Thanks, I will try and get that in this weekend if I get chance.

leifericf

leifericf

I’ve been trying to figure this out today, and stumbled upon this thread.

Thanks for creating this ueberauth strategy, @swelham. It seems to be just what I need.

If I may make a suggestion: It could be a good idea to add the keywords “Azure Active Directory” and “Azure AD” to your GitHub repository, so that it is more searchable and thus easier to find.

Related thread:

Cheers! :slightly_smiling_face:

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
jaybe78
Hello, I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter). The diffic...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New
webofbits
Aludel - LLM Evaluation Workbench Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews