okru_oauth 1.0.2 copy "okru_oauth: ^1.0.2" to clipboard
okru_oauth: ^1.0.2 copied to clipboard

okru auth library

okru_oauth #

okru auth library

Getting Started #

Android setup #

add

<activity
            android:name="ru.ok.android.sdk.OkAuthActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data
                    android:host="ok{* Your OK app id here *}"
                    android:scheme="okauth"/>
            </intent-filter>
        </activity>

to Manifest

IOs setup #

add

 <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>

to Info.plist also add

<string>ok{* Your OK app id here *}</string>

to list of supported urls schemes in info.plist

then add

import okru_oauth

to top of appdelegate file and

override func application(_ app: UIApplication,
                              open url: URL,
                           options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
        OKSDK.open(url)
        return true
    }

inside AppDelegate class in same file

Example #

to use example, you need to replace app id and app key inside both native parts(manifest and plist) and main.dart of example

0
likes
100
pub points
0%
popularity

Publisher

unverified uploader

okru auth library

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on okru_oauth