Comments (4)
try:
"*" - filter all domains
"*@youdomain.com" - filter specific domain
"[email protected]" - filter specific email
it's working!
from authgoogle.
I have the same issue as gaborherman. I made a chance to the code. I prefer config as alloweddomain: mydomain.com (without asterisk *)
and the code fix is at auth.php:
function endsWith($haystack, $needle) {
// search forward starting from end minus needle length characters
return $needle === "" || (($temp = strlen($haystack) - strlen($needle)) >= 0 && strpos($haystack, $needle, $temp) !== FALSE);
}
foreach ($domains as $domain) {
if ($this->endsWith($email, $domain)){
return true;
}
from authgoogle.
That forces you to allow all emails from a certain domain. The way it works
currently let's you specify with more detail whether it should be the whole
domain or just a subsection.
On Fri, 27 Nov 2015 09:47 vladaman [email protected] wrote:
I have the same issue as gaborherman. I made a chance to the code. I
prefer config as alloweddomain: mydomain.com (without asterisk *)and the code fix is at auth.php:
foreach ($domains as $domain) {
if ($this->endsWith($email, $domain)){
return true;
}—
Reply to this email directly or view it on GitHub
#32 (comment).
from authgoogle.
Hace you guys sent a pull request with this?
from authgoogle.
Related Issues (20)
- Fix compatibility with the authchained plugin
- 'OAuth 2.0 access token has expired, and a refresh token is not available.' error HOT 5
- Hide plain auth login form HOT 3
- Auth Google Error: access denied for [email protected] HOT 3
- Always redirecting to start page HOT 1
- Error Message with dokuwiki 'detritus' HOT 1
- Warnings on dokuwiki 'detritus'
- [feature request] add authmethods to existing account
- BUG: Register declaration change required to remove error in DokuWiki HOT 3
- No ACL setup yet! Denying access to everyone.
- Two Logins to get in
- Don't use basic auth credentials as login HOT 2
- Added and configured plugin, can't see google connect button HOT 1
- Problem with email notify HOT 1
- Have to Login twice
- Notification on new user create
- Google+ API Shutdown issue
- Redirection always on https://myaccount.google.com/?pli=1# HOT 2
- Authorization Error 400 invalid_request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from authgoogle.