Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Replace Our Token Library #3514

Merged
merged 6 commits into from
Aug 28, 2023
Merged

Replace Our Token Library #3514

merged 6 commits into from
Aug 28, 2023

Conversation

jrjohnson
Copy link
Member

@jrjohnson jrjohnson commented Aug 25, 2023

I'd love to keep using ember-simple-auth-token, but we're having trouble keeping it up to
date. Doing this work ourselves is reasonable as most of the code can be
removed since we don't support many of the options supported by the
addon.

Turns out we were getting ember-fetch from this library so I had to do a little magic where we were using fetch as well.

Then cleanup on dependencies elsewhere because npm picked today to be weird for some reason, or else the removal of this library unlocked some kind of deep other things.

This is ready for review / testing / discussion, but not for merge.

Pre-merge test steps:

  • test this on netlify
  • bring this branch into frontend and test there
  • do a pre-release of the frontend PR and test it on stage (with CAS)

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
jrjohnson Jon Johnson
I'd love to keep using it, but we're having trouble keeping it up to
date. Doing this work ourselves is reasonable as most of the code can be
removed since we don't support many of the options supported by the
addon.

Verified

This commit was signed with the committer’s verified signature.
jrjohnson Jon Johnson
We not longer need to get this from a polyfill, all of our targeted
browsers have fetch included.

Verified

This commit was signed with the committer’s verified signature.
jrjohnson Jon Johnson
Since ember isn't hooked into the async work here we need to do a little
bit of extra magic to ensure tests wait for this promise to resolve
before continuing.

Verified

This commit was signed with the committer’s verified signature.
jrjohnson Jon Johnson
NPM wants to match up our dependencies and our peer dependencies, let's
allow that.

Verified

This commit was signed with the committer’s verified signature.
jrjohnson Jon Johnson
Some copy paste issues here, plus I've consolidated this now that I
better understand what is going on here.

Verified

This commit was signed with the committer’s verified signature.
jrjohnson Jon Johnson
I'm trying to make this as easy to follow as possible, it was doing very
strange things with CAS auth and I wasn't able to track down where that
was happening, hopefully this will fix it or at least make it easier to
find the bug.
@jrjohnson jrjohnson marked this pull request as ready for review August 28, 2023 17:54
@jrjohnson jrjohnson requested a review from stopfstedt August 28, 2023 17:54
@jrjohnson
Copy link
Member Author

Testing is done as much as feasible. We'll do more after getting this merged into frontend before releasing. Ready for code review.

Copy link
Member

@stopfstedt stopfstedt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good to me.

@jrjohnson jrjohnson merged commit 4553acc into ilios:master Aug 28, 2023
@jrjohnson jrjohnson deleted the token-ourselves branch August 28, 2023 20:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants