-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from ExWeiv/development
Security Update
- Loading branch information
Showing
60 changed files
with
327 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Easy Auth by ExWeiv Apps | ||
|
||
This library enables you to integrate some popular OAuth options with your Wix website or with your Wix Blocks application. This package is not for basic users and designed for customization, so developers can take the skelaton and work with it to integrate the OAuth providers however they want or need. | ||
|
||
If you are looking for something basic for your Wix site then you can install **Easy Auth** application from Wix App Market. The version in the app market is designed for basic use cases or basic users to quickly integrate providers as easy as possible. | ||
|
||
> [Documentation](https://easy-auth.apps.exweiv.com/) | ||
**Currently this package handles OAuth for:** | ||
|
||
- Facebook ✅ | ||
- Google ✅ | ||
- Discord ✅ | ||
- GitHub ✅ | ||
- Steam ✅ (Read Below) | ||
|
||
**We are planning to add:** | ||
|
||
- Microsoft | ||
- Twitch | ||
|
||
### About Steam OAuth Process | ||
|
||
Steam is not providing any actual oauth flow, there isn't any official API to handle auth process with Steam, instead you have openid which plays a role as another 3rd party provider to handle authentication with Steam. But main problem with that is passing state with this option is not possible. Which means a big security issue when you are dealing with auth process. | ||
|
||
You'll have two functions, first is `redirectURL` second is `authUser` which is also possible with other providers but! issue here is as we said you can't pass a state and you won't get any token as response what you'll get is the Steam user id (a public info of any steam user) and you'll make a call to Steam web API to get the public data of user like profile photo nickname etc. | ||
|
||
You'll need to find a way to verify logins/users like what we do with states. | ||
|
||
--- | ||
|
||
[Kolay Gelsin](https://medium.com/the-optimists-daily/kolay-gelsin-a-turkish-expression-we-should-all-know-and-use-83fc1207ae5d) 💜 | ||
|
||
<img src="https://static.wixstatic.com/media/510eca_399a582544de4cb2b958ce934578097f~mv2.png"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.copyOwnPropsOnly = void 0; | ||
function copyOwnPropsOnly(src) { | ||
const result = Object.create(null); | ||
function copyObject(value) { | ||
if (isPlainObject(value)) { | ||
return copyOwnPropsOnly(value); | ||
} | ||
else { | ||
return value; | ||
} | ||
} | ||
for (const key of Object.getOwnPropertyNames(src)) { | ||
if (key !== "__proto__" || "constructor" || "prototype") { | ||
if (typeof src[key] === "object") { | ||
result[key] = copyObject(src[key]); | ||
} | ||
else { | ||
result[key] = src[key]; | ||
} | ||
} | ||
} | ||
return result; | ||
} | ||
exports.copyOwnPropsOnly = copyOwnPropsOnly; | ||
function isPlainObject(value) { | ||
if (typeof value !== 'object' || value === null) | ||
return false; | ||
if (Array.isArray(value)) | ||
return false; | ||
return value.constructor === Object; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@exweiv/easy-auth", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "Integrate popular OAuth apps with your Wix website easily.", | ||
"main": "./lib/index.js", | ||
"scripts": { | ||
|
@@ -27,15 +27,15 @@ | |
"url": "[email protected]:ExWeiv/easy-auth.git", | ||
"type": "git" | ||
}, | ||
"homepage": "https://apps.exweiv.com/", | ||
"homepage": "https://easy-auth.apps.exweiv.com/", | ||
"bugs": { | ||
"url": "https://github.com/ExWeiv/easy-auth/issues", | ||
"email": "[email protected]" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Enes Bekar", | ||
"url": "https://github.com/l0eix" | ||
"url": "https://github.com/loeiks" | ||
} | ||
], | ||
"engines": { | ||
|
@@ -53,6 +53,5 @@ | |
"@types/uuid": "^9.0.8", | ||
"typedoc": "^0.25.12", | ||
"typedoc-plugin-extras": "^3.0.0" | ||
}, | ||
"readme": "https://raw.githubusercontent.com/ExWeiv/easy-auth/main/README.md" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.