How to Upgrade Open SSO v1.x.x
Contents
Here is the Open SSO changelog information also How to take a step for upgrade Open SSO v1.x.x.
Table Of Contents
Changelog
v1.0.0
Date Release: 20 Mar 2023
- First Release
v1.1.0
Date Release: 01 Aug 2023
- Add Oauth for Apple ID.
- Update email for reset password.
- Update config.
- Update dependencies.
- Update postman file.
- Update docs about API.
- Add docs how to upgrade.
Upgrade
v.1.0.0 - v.1.1.0
File Changes
This upgrade theres some files has changed. Just replace it but if you have modified OpenSSO code, you should consider about these files:
- routes/oauth.js
- routes/user.js
- schemas/oauth.js
- views/default/email-reset.html
- views/default/sign-in.html
- views/default/sso-login.html
- changelog.md
- config.default.js
- config.js
- postman_collection.json
- package-lock.js
- package.js
Add new config.js
There is new configuration for oauth.
oauth: {
google: {
// ...
},
apple: {
enable: false,
clientId: 'com.xxx.login',
redirectURI: 'https://yourdomain.com'
}
}
Upgrade dependencies
- Uninstall old package
npm remove @fastify/view eta sqlite3 sequelize fastify
- Install new package
npm install @fastify/view@7 eta@2 sqlite3 sequelize fastify
- Audit Fix
npm audit fix
- Done
As you can see, there still 3 package left can’t be upgraded because there is still no fix package available, since this is moderate status, we can ignore this for now.
