-
Notifications
You must be signed in to change notification settings - Fork 3
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
Allows access via Kibana #62
Comments
example:
So probably just snagging |
(v similar logic could allow access via the Cloud user console as well) |
OK so it's a bit ugly, currently Kibana CORS only allows you to do I've been looking into what it would look like instead to add direct ES/SAML support ... I think it's doable.... see https://developers.google.com/apps-script/reference/script/script-app (search for You set the callback id to be |
OK some more experimentation into what it would take to get (direct to ES) SAML working Starting with https://github.com/gsuitedevs/apps-script-oauth2/blob/8c1963ed3eeb74a244e3f306217f536009e86575/dist/OAuth2.gs I added the following test code: function getCallbackURL(callbackFunctionName){
var stateToken = ScriptApp.newStateToken()
.withMethod(callbackFunctionName)
.withTimeout(120)
.createToken();
return 'https://script.google.com/macros/d/' + encodeURIComponent(ScriptApp.getScriptId()) +
'/usercallback?state=' + stateToken;
}
//...
html.testLink = getCallbackURL("myTestCallback")
//...
function myTestCallback(inVal) {
Logger.log("in " + JSON.stringify(inVal)
return true
} Then using the cookies etc that I get by pasting that link into the browser I did a curl:
And sure enough looking at the logs for my script I get:
So in theory I can set the ACS to be that callback (provided I can make it pass in the |
2 cases:
POST /api/console/proxy?path=$ENCODE($endpoint)&method=$method
The text was updated successfully, but these errors were encountered: