OAuth 2 API Google favicon.ico????

OAuth 2 API Google favicon.ico????

by Russ Ullrich -
Number of replies: 3

So I'm trying to get my Oauth 2 API working and am trying to get approved by Google for the Oauth.

After a week of back and forth, I'm down to one last issue Google has.  The dang icon on the sign-in page.

Can someone tell me how to change the icon so I can be compliant with their "branding"?
What file is this stored in?  It's pulling it from a Google URL.

Google

Average of ratings: -
In reply to Russ Ullrich

Re: OAuth 2 API Google favicon.ico????

by Russ Ullrich -

So I found in the oauth2 settings where you can put a different URL BUT the size is locked to the icon size.

Where can you change the size of the image when displayed??

In reply to Russ Ullrich

Re: OAuth 2 API Google favicon.ico????

by Ken Task -
Picture of Particularly helpful Moodlers

Looks like it's hard coded.

A site login page using Google Oauth where the button appears (added):

Viewing source of that page:

 <a href="https://yoursite/auth/oauth2/login.php?id=1&amp;wantsurl=%2F&amp;sesskey=NxnQztsC9m" title="Google" class="btn btn-secondary btn-block">
                                        <img src="https://accounts.google.com/favicon.ico" alt="" width="24" height="24"/>
                                    Google
                                </a>

If one changes core code or the oauth 2 code, next update to code, you might loose your edits.

There is no option for display of the icon (height/width) in Moodle.

'SoS', Ken

In reply to Ken Task

Re: OAuth 2 API Google favicon.ico????

by Russ Ullrich -

That line does not exist in the login.php file.  It's constructed by PHP from somewhere.

The width="24" is coming from somewhere.  The question is where.  Is it in a CSS file, database, hardcoded...


$returnurl = new moodle_url('/auth/oauth2/login.php', $returnparams);

$client = \core\oauth2\api::get_user_oauth_client($issuer, $returnurl);


Anyone???