Jump to content

Community

The Krotek

+Clients
  • Content Count

    508
  • Joined

  • Last visited

2 Followers

About The Krotek

  • Rank
    Community Regular

Contact Methods

IPS Marketplace

  • Resources Contributor
    Total file submissions: 4

Profile Information

  • Gender
    Male
  • Location
    Lithuania, Vilnius

Recent Profile Visitors

11,720 profile views
  1. New custom login method has an issue with processing avatars in some cases. Some networks don't return actual URL for avatar, but instead return some kind of ID, which then should be inserted in generic URL. For example, Yandex returns default_avatar_id, which then should be inserted in this URL: https://avatars.yandex.net/get-yapic/{default_avatar_id}/islands-200 Currently it is not possible to receive an avatar from Yandex and all similar cases due to limitations in custom login handler. But this can be easily fixed by checking, if "Profile Photo URL Parameter" is an URL, parse avatar ID from it (e.g: {default_avatar_id}) and then return the actual URL for avatar. Very easy to implement, I hope you will add it in the upcoming release.
  2. I've tested it and assigned email to session variable instead: \IPS\Session::i()->vkontakte_email With class variable it didn't work. Probably due to multiple redirection in the process. This enables seamless registration, but Update Email feature won't work, since email is not returned in user array. But that's OK.
  3. Sorry, I mixed it with _handleAuthorizationResponse() function, which returns _processAccessToken() function result. I'll try add an override to _exchangeAuthorizationCodeForAccessToken() tomorrow. Looks like it should work indeed. Thank you. IPS Community framework is a bit confusing to me. I sometimes miss the obvious stuff ?
  4. Here's a code: return $this->_processAccessToken( $login, $accessToken ); The result of access_token endpoint request is $accessToken. You sure it returns this variable, not the result of _processAccessToken() function?
  5. _exchangeAuthorizationCodeForAccessToken() function returns the result of _processAccessToken() function and this result is a member array. Am I missing something here?
  6. This is what I wanted to do, but didn't understand, how can I get this value without rewriting the whole function.
  7. Just pass full $accessToken array, not only $accessToken['access_token'] index. You won't break anything at all and only need to update your handler correspondingly. This was the whole point: protocol is too strict.
  8. Please, read my post, don't skip the description of the issue. I never said, that VK login doesn't work. I was very specific on the matter. Once again: VK API returns email in a non-standard way - in array with access_token, NOT with user array. This makes Update Email feature useless (always NULL returned) and seamless registration impossible (user needs to enter email manually). I provided details above, on why exactly this happens. Your current protocol is too strict. Any non-standard value will be lost.
  9. I'm trying to update my login handlers to new format. Mostly it's OK, but a few things bother me. Particularly, how _processAccessToken() processes token and passes it to other functions. At some point this function calls authenticatedEmail($accessToken['access_token']) function and passes access token only. But not all social networks are made the same way. For example, VKontakte returns user email, but it does it in the same array with access token. When we exchange token for code, not only user ID, access token and expiration period are returned, but email as well. The most weird part, that this email is NOT returned in user array. So the only way to get user email is on token exchange step. And here's the problem: since only access token is passed to authenticatedEmail() function, I can't get user email. If full accessToken array was passed like this authenticatedEmail($accessToken), problem would be solved. Same to other similar functions like authenticatedUserName(), where only access token is passed, not the full array. Potentially I could use Update Email option for VKontatke, but for now I don't know, how override the default login handler functionality to get email and process token at the same time. Rewriting the whole _processAccessToken() function seems an awful idea.
  10. Just tested it on the latest IPS Community and it works perfectly.
  11. That's right, there's no such template bit, because template name is "tgshare" not "telegramShareLink".
  12. This is a support topic for all my social profiling extensions (social profiles). Currently available profiles: Telegram Social Profile Tumblr Social Profile Odnoklassniki Social Profile Mail.ru Social Profile Post your questions, support or new social profile requests here or send them via email at support@thekrotek.com
  13. Version 1.0.0

    24 downloads

    Adds link to your profile on Tumblr blogging platform in IPS Community Suite footer. Work exactly the same way as standard Facebook, Twitter or Google profile links. Demo You can see and test social profile links on our support forum. Look in the footer, where all social links are displayed. Support For support contact us by email support@thekrotek.com. Please, do NOT ask for support or report issues in comments! If you need a profile link for any social network, just drop us an email to support@thekrotek.com, and we will do it!

    Free

  14. Version 1.0.0

    50 downloads

    Adds link to your profile on Telegram in IPS Community Suite footer. Work exactly the same way as standard Facebook, Twitter or Google profile links. Demo You can see and test social profile links on our support forum. Look in the footer, where all social links are displayed. Support For support contact us by email support@thekrotek.com. Please, do NOT ask for support or report issues in comments! If you need a profile link for any social network, just drop us an email to support@thekrotek.com, and we will do it!

    Free

×
×
  • Create New...