GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 1byte-software/jfw-dart: A Dart SDK for integrating Jframework system

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.dart_tool
.dart_tool
 
 
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
example
example
 
 
lib
lib
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
example.jpg
example.jpg
 
 
pubspec.lock
pubspec.lock
 
 
pubspec.yaml
pubspec.yaml
 
 

Repository files navigation

Jframework Dart Library

Pub Version License: MIT CI Status

A Dart SDK for seamless integration with Jframework APIs, supporting both API Key and Auth Key authentication flows.

Features

  • Dual Authentication Methods:
    • APIKey header for service-to-service auth
    • AuthKey header for user credential flows
  • Complete User Management:
    • CRUD operations for users
    • Role-based permissions
  • Devices Management:
    • CRUD operations for devices
  • CDN Management:
    • Upload file cdn

Installation

Add to your pubspec.yaml:

dependencies:
  jfw_dart: ^1.0.0

Usage

1. Auth Key Authentication

final authProvider = AuthKeyProvider(null);

 final client = JfwClient(
    brandUrl: 'YOUR_BRAND_URL',
    authProvider: authProvider,
  );

2. Username/Password Authentication

final authService = AuthService(client);

AuthenticateRequest request = AuthenticateRequest(
  username: 'user_username', // Replace with user's username
  password: 'user_password', // Replace with user's password
);

// Login with credentials
final authResponse = await authService.loginWithCredentials(request);

// If the login is successful, the response will contain the auth key
client.updateAuthProvider(AuthKeyProvider(response.authKey));

print('Login successful! Auth Key: ${response.authKey}');

3. Making Authenticated Requests

// Subsequent requests will automatically include the Auth-Key header
final userService = UserService(client);
final user = await userService.getCurrentUser();

print('Current user: id=${user.id}, email=${user.emailAddress}, username=${user.username}');

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

About

A Dart SDK for integrating Jframework system

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.