Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch oidc-client to oidc-client-ts #214

Open
wants to merge 70 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
bdd0e51
Converts package-lock file to version 2
ericlamb Jul 18, 2023
296da3b
Switches from oidc-client to oidc-client-ts
ericlamb Jul 18, 2023
9e01f77
Switches package information to me
ericlamb Jul 18, 2023
202ceed
Re-adds immutable dependency to fix build
ericlamb Jul 18, 2023
7688bb2
Removes compiled version from git
ericlamb Jul 18, 2023
2aff84f
Adds CI build
ericlamb Jul 18, 2023
82f9ff8
Adds dependabot config
ericlamb Jul 18, 2023
fcc9e12
Adds release workflow to publish package
ericlamb Jul 18, 2023
90f872c
Switches dependabot pull requests to the dev branch
ericlamb Jul 25, 2023
2a75cb8
Bump async from 2.4.1 to 2.6.4
dependabot[bot] Jul 25, 2023
a5eadeb
Bump json-loader from 0.5.4 to 0.5.7
dependabot[bot] Jul 25, 2023
8109b8c
Bump decode-uri-component from 0.2.0 to 0.2.2
dependabot[bot] Jul 25, 2023
df18ba3
Bump babel-core from 6.24.1 to 6.26.3
dependabot[bot] Jul 25, 2023
c0c482f
Bump qs from 6.5.2 to 6.5.3
dependabot[bot] Jul 25, 2023
e74d331
Updates webpack to v3
ericlamb Aug 4, 2023
606ba8c
Updates webpack to v4
ericlamb Aug 4, 2023
b2b32b3
Bump chai from 3.5.0 to 4.3.7
dependabot[bot] Aug 4, 2023
de00a8d
Bump immutable from 4.3.1 to 4.3.2
dependabot[bot] Aug 4, 2023
951fb34
Bump webpack-node-externals from 1.6.0 to 3.0.0
dependabot[bot] Aug 4, 2023
e61eef2
Bump file-loader from 0.9.0 to 6.2.0
dependabot[bot] Aug 4, 2023
0791c2b
Bump browserify from 13.3.0 to 17.0.0
dependabot[bot] Aug 4, 2023
85da7d5
Bump babel-eslint from 7.2.3 to 10.1.0
dependabot[bot] Aug 4, 2023
1a2058b
Bump enzyme from 2.8.2 to 3.11.0
dependabot[bot] Aug 4, 2023
56fd5d5
Bump node-storage-shim from 1.0.1 to 2.0.1
dependabot[bot] Aug 4, 2023
c9c0305
Bump es6-promise from 4.1.0 to 4.2.8
dependabot[bot] Aug 4, 2023
817e2c1
Updates mocha
ericlamb Aug 4, 2023
4df68fa
Updates webpack to v5
ericlamb Aug 4, 2023
e72e813
Bump expect from 1.20.2 to 29.6.2
dependabot[bot] Aug 4, 2023
063f90a
Fixes tests after upgrading expect
ericlamb Aug 4, 2023
432d143
Switches to babel-preset-env to resolve npm warning
ericlamb Aug 4, 2023
5a198c0
Switches to @babel/eslint-parser to resolve npm warning
ericlamb Aug 4, 2023
7a80811
Bumps jsdom from 9.9.1 to 15.2.1
ericlamb Aug 4, 2023
b7a37f2
Bump sinon from 1.17.7 to 15.2.0
dependabot[bot] Aug 4, 2023
7f3c275
Switches to a fake to ensure the re-wired constructor returns an object
ericlamb Aug 4, 2023
5a37ca0
Bump actions/setup-node from 3 to 4
dependabot[bot] Oct 27, 2023
0caecf1
Bump actions/checkout from 3 to 4
dependabot[bot] Sep 8, 2023
fe7d7ab
Bump expect from 29.6.2 to 29.7.0
dependabot[bot] Sep 15, 2023
45914c3
Bump webpack from 5.88.2 to 5.89.0
dependabot[bot] Oct 20, 2023
4296e84
Bump immutable from 4.3.2 to 4.3.4
dependabot[bot] Sep 1, 2023
ec80726
Bump chai from 4.3.7 to 4.3.10
dependabot[bot] Sep 29, 2023
93f0f02
Bump @babel/eslint-parser from 7.22.9 to 7.22.15
dependabot[bot] Sep 8, 2023
6ff4b86
Bump co-mocha from 1.2.0 to 1.2.2
dependabot[bot] Aug 11, 2023
dde59cd
Bump sinon from 15.2.0 to 17.0.1
dependabot[bot] Nov 3, 2023
288a54f
Removes unused packages
ericlamb Feb 5, 2024
57ea396
Bump webpack from 5.89.0 to 5.90.3
dependabot[bot] Feb 23, 2024
301b529
Bump @babel/eslint-parser from 7.22.15 to 7.23.10
dependabot[bot] Feb 9, 2024
5959382
Bump immutable from 4.3.4 to 4.3.5
dependabot[bot] Feb 9, 2024
bc92714
Bump mocha from 10.2.0 to 10.3.0
dependabot[bot] Feb 9, 2024
e12cf7d
Bump shell-quote from 1.6.1 to 1.8.1
dependabot[bot] Feb 27, 2024
8f07690
Bump babel-plugin-rewire from 1.1.0 to 1.2.0
dependabot[bot] Feb 27, 2024
58236a2
Bump mocha from 10.3.0 to 10.4.0
dependabot[bot] Mar 29, 2024
2d6421e
Bump @babel/eslint-parser from 7.23.10 to 7.24.7
dependabot[bot] Jun 7, 2024
ebace53
Bump webpack from 5.90.3 to 5.92.0
dependabot[bot] Jun 14, 2024
8b6c723
Bump immutable from 4.3.5 to 4.3.6
dependabot[bot] May 17, 2024
18fa47a
Bump @babel/eslint-parser from 7.24.7 to 7.24.8
dependabot[bot] Jul 16, 2024
f0865d0
Bump mocha from 10.4.0 to 10.6.0
dependabot[bot] Jul 16, 2024
caee1cf
Bump webpack from 5.92.0 to 5.93.0
dependabot[bot] Jul 16, 2024
afa728d
Updates component types for React 18
ericlamb Sep 20, 2024
da100bc
Allows for newer versions of oidc-client-ts
ericlamb Sep 20, 2024
a822f53
Bump webpack from 5.93.0 to 5.94.0
dependabot[bot] Sep 20, 2024
ab182d9
Bump mocha from 10.6.0 to 10.7.3
dependabot[bot] Aug 16, 2024
de11c14
Bump sinon from 17.0.1 to 19.0.2
dependabot[bot] Sep 20, 2024
ba9359c
Bump immutable from 4.3.6 to 4.3.7
dependabot[bot] Jul 26, 2024
21eb6c9
Bump @babel/eslint-parser from 7.24.8 to 7.25.1
dependabot[bot] Aug 2, 2024
4901cfe
Version 1.1.0
ericlamb Sep 20, 2024
2099317
Bump elliptic from 6.4.0 to 6.5.7
dependabot[bot] Sep 20, 2024
e7c6a9f
Bump @babel/traverse from 7.22.8 to 7.25.6
dependabot[bot] Sep 20, 2024
805ed5e
Bump braces from 3.0.2 to 3.0.3
dependabot[bot] Sep 20, 2024
bc5bbb7
Bump minimist and mkdirp
dependabot[bot] Sep 20, 2024
92cb2cc
Bump ws from 7.5.9 to 7.5.10
dependabot[bot] Sep 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["react", "es2015", "stage-0"]
"presets": ["react", "env", "stage-0"]
}
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
day: friday
open-pull-requests-limit: 99
target-branch: "dev"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
day: friday
open-pull-requests-limit: 99
target-branch: "dev"
17 changes: 17 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Install, Build, and Test
run: npm install --force
23 changes: 23 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
release:
types: [published]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Install, Build, and Test
run: npm install --force
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
.tmp/
dist/
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# redux-oidc
[![Build Status](https://travis-ci.org/maxmantz/redux-oidc.svg?branch=master)](https://travis-ci.org/maxmantz/redux-oidc)
[![CI](https://github.com/ericlamb/redux-oidc/actions/workflows/ci.yaml/badge.svg)](https://github.com/ericlamb/redux-oidc/actions/workflows/ci.yaml)

Forked from [maxmantz/redux-oidc](https://github.com/maxmantz/redux-oidc).

A package for managing OpenID-Connect authentication in ReactJS / Redux apps. It wraps the popular oidc-client library to redux actions and reducers.

Expand Down
1 change: 0 additions & 1 deletion dist/redux-oidc.js

This file was deleted.

6 changes: 4 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module "redux-oidc" {
import { SignoutResponse, UserManager, UserManagerSettings, User } from "oidc-client";
declare module "@ericlamb/redux-oidc" {
import { SignoutResponse, UserManager, UserManagerSettings, User } from "oidc-client-ts";
import { Map, fromJS } from "immutable";
import { Middleware, Store } from "redux";
import * as React from "react";
Expand All @@ -23,6 +23,7 @@ declare module "redux-oidc" {
readonly successCallback: (user: User) => void;
readonly errorCallback?: (error: Error) => void;
readonly route?: string;
children?: React.ReactNode;
}

export class CallbackComponent extends React.Component<
Expand All @@ -34,6 +35,7 @@ declare module "redux-oidc" {
readonly successCallback: (response: SignoutResponse) => void;
readonly errorCallback?: (error: Error) => void;
readonly route?: string;
children?: React.ReactNode;
}

export class SignoutCallbackComponent extends React.Component<
Expand Down
Loading