Skip to content

Commit 891e596

Browse files
author
Mehran Rahbardar
committed
code added to readme
1 parent 793f355 commit 891e596

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
PHP oauth client with Fanapium SSO
22
==================================
3-
<div dir="rtl">
4-
این یک نمونه برنامه بسیار ساده نوشته شده با php است که از سرویس SSO پلتفرم فناپ استفاده می‌کند.
5-
3+
This is a simple php app that uses fanapium single sign on service basedoatuth 2.0 servcei
64

75
نحوه استفاده
86
------
97

108
برای استفاده از این کد ابتدا فایل config.php را باز کرده و مقادیر واقعی را در جای مناسب خود جایگزاری کنید.
11-
</div>
9+
</div>
10+
```php
11+
$config = [
12+
"service"=>"__http://SERVICE.ENDPOINT/__",
13+
"sso"=>"__http://SERVICE.ENDPOINT/oauth__",
14+
"client_id"=>"__CLIENT_ID__",
15+
"client_secret"=>"__CLIENT_SECRET__",
16+
"home"=>"http://WHERE_THIS_CODE_DEPLOYED/"
17+
];
18+
```

0 commit comments

Comments
 (0)