【问题标题】:Google plus integration in moodle谷歌加在moodle中的集成
【发布时间】:2015-03-04 09:13:00
【问题描述】:

我已经使用 gsaml 在 moodle 中完成了 google api 集成。但我有一个问题。每件事都很好。但谷歌加不起作用。只有当我第一次登录 gmail 时,Google plus 才有效。我正在尝试使用环聊功能。有什么问题?

【问题讨论】:

    标签: google-api moodle


    【解决方案1】:

    只需在视图中添加此内容即可加载您想要显示 google+ 签名按钮的位置

    self.signInButton_google = [[GPPSignInButton alloc]init];
    self.signInButton_google.frame = //pass button frame
    [self.view addSubview:self.signInButton_google];
    
    google_signIn = [GPPSignIn sharedInstance];
    google_signIn.shouldFetchGooglePlusUser = YES;
    google_signIn.shouldFetchGoogleUserEmail = YES;
    
    google_signIn.clientID = kClientId;
    google_signIn.scopes = @[ @"profile" ];
    google_signIn.delegate =self;
    

    【讨论】:

    • ,.. Acutally 我已经使用 gsaml 在 moodle 中添加了 google api。 Gmail 适用于 sso,但 gplus 不适用。 Gplus 仅在我第一次登录 gmail 帐户时才有效。我不需要向 gplus 添加单独的按钮。
    猜你喜欢
    • 2014-10-03
    • 1970-01-01
    • 2017-11-21
    • 1970-01-01
    • 1970-01-01
    • 2020-10-02
    • 2021-03-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多